mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-04 08:59:39 -04:00
Switch to deffered objects interface.
This commit is contained in:
parent
71d2ff10dc
commit
5fab8e1465
4 changed files with 26 additions and 25 deletions
|
@ -51,12 +51,11 @@ if (window.attachEvent && !window.addEventListener) { throw 'no-browser'; }
|
|||
url: url,
|
||||
data: {action: 'get', setup: true, options: true, types: true, theme: true, langs: true},
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
success: function (config) {
|
||||
dataType: 'json'
|
||||
}).done(function (config) {
|
||||
|
||||
modulejs.define('config', config);
|
||||
$(function () { modulejs.require(module); });
|
||||
}
|
||||
modulejs.define('config', config);
|
||||
$(function () { modulejs.require(module); });
|
||||
});
|
||||
|
||||
}());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue