mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +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 () {
|
templates.load_template(function () {
|
||||||
exec_body_scripts(content);
|
exec_body_scripts(content);
|
||||||
require(['forum/' + tpl_url], function(script) {
|
require(['forum/' + tpl_url], function(script) {
|
||||||
if (script) script.init();
|
if (script && script.init) script.init();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (callback) {
|
if (callback) {
|
||||||
|
|||||||
Reference in New Issue
Block a user