mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
not running init() if there is no init method in each template script
This commit is contained in:
@@ -77,7 +77,7 @@ var ajaxify = {};
|
||||
templates.load_template(function () {
|
||||
exec_body_scripts(content);
|
||||
require(['forum/' + tpl_url], function(script) {
|
||||
if (script) script.init();
|
||||
if (script && script.init) script.init();
|
||||
});
|
||||
|
||||
if (callback) {
|
||||
|
||||
Reference in New Issue
Block a user