fixed ACP from previous commit

This commit is contained in:
psychobunny
2014-10-08 16:08:35 -04:00
parent 0f759f9df4
commit ed60deb3f5
22 changed files with 26 additions and 22 deletions

View File

@@ -145,7 +145,9 @@ $(document).ready(function() {
};
ajaxify.loadScript = function(tpl_url, callback) {
require(['forum/' + tpl_url], function(script) {
var location = !app.inAdmin ? 'forum/' : '';
require([location + tpl_url], function(script) {
if (script && script.init) {
script.init();
}