|
|
@ -150,13 +150,18 @@ $(document).ready(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ajaxify.end = function(url, tpl_url) {
|
|
|
|
ajaxify.end = function(url, tpl_url) {
|
|
|
|
|
|
|
|
function done() {
|
|
|
|
|
|
|
|
if (--count === 0) {
|
|
|
|
|
|
|
|
$(window).trigger('action:ajaxify.end', {url: url});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var count = 2;
|
|
|
|
|
|
|
|
|
|
|
|
ajaxify.variables.parse();
|
|
|
|
ajaxify.variables.parse();
|
|
|
|
|
|
|
|
|
|
|
|
ajaxify.loadScript(tpl_url);
|
|
|
|
ajaxify.loadScript(tpl_url, done);
|
|
|
|
|
|
|
|
|
|
|
|
ajaxify.widgets.render(tpl_url, url, function() {
|
|
|
|
ajaxify.widgets.render(tpl_url, url, done);
|
|
|
|
$(window).trigger('action:ajaxify.end', {url: url});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(window).trigger('action:ajaxify.contentLoaded', {url: url, tpl: tpl_url});
|
|
|
|
$(window).trigger('action:ajaxify.contentLoaded', {url: url, tpl: tpl_url});
|
|
|
|
|
|
|
|
|
|
|
|