mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-29 22:45:14 -04:00
Refactored and lots of modification. See README.md.
This commit is contained in:
parent
859a680e19
commit
71ed41fa69
85 changed files with 3191 additions and 2969 deletions
21
src/_h5ai/js/inc/h5ai-main.js
Normal file
21
src/_h5ai/js/inc/h5ai-main.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
|
||||
module.define('h5ai-main', [jQuery, 'core/event'], function ($, event) {
|
||||
|
||||
|
||||
event.pub('beforeView');
|
||||
|
||||
module.require('view/extended');
|
||||
module.require('view/viewmode');
|
||||
module.require('view/spacing');
|
||||
|
||||
$('#h5ai-reference').append(module.require('core/parser').id === 'apache-autoindex' ? ' (js)' : ' (php)');
|
||||
|
||||
event.pub('beforeExt');
|
||||
|
||||
_.each(module.getIds(/^ext\/.+/), function (id) {
|
||||
|
||||
module.require(id);
|
||||
});
|
||||
|
||||
event.pub('ready');
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue