problem solved. i have to import external script with
require([script], function(name) { })It seems that importing scripts in a classic way creates conflicts in nodebb
I have add this to /lib/main.js
.But it didn't work.What need i do to solve it?
app.alertError('You enter wrong.Please try again.');
can't be runed./*global utils, app*/
$(function() {
$(window).on('action:ajaxify.end', function(data) {
if (data.url === 'register' && utils.param('error') === 'wrong-code') {
console.log("wrong-code");
app.alertError('You enter wrong.Please try again.');
}
});
});