mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
revamped client side scripts so that they are loaded using Require.js instead.
This commit is contained in:
@@ -76,6 +76,9 @@ var ajaxify = {};
|
||||
templates.flush();
|
||||
templates.load_template(function () {
|
||||
exec_body_scripts(content);
|
||||
require(['forum/' + tpl_url], function(script) {
|
||||
if (script) script.init();
|
||||
});
|
||||
|
||||
if (callback) {
|
||||
callback();
|
||||
|
||||
Reference in New Issue
Block a user