correct some unncessary instances of raw HTML injection

pull/1/head
ansuz 3 years ago
parent 384d4be864
commit 72bf3696ee

@ -1733,7 +1733,7 @@ define([
removeSelected(); removeSelected();
refresh(); refresh();
}); });
}, null, true); });
}; };

@ -45,6 +45,7 @@ define([
var test; var test;
var I_REALLY_WANT_TO_USE_MY_EMAIL_FOR_MY_USERNAME = false; var I_REALLY_WANT_TO_USE_MY_EMAIL_FOR_MY_USERNAME = false;
var br = function () { return h('br'); };
var registerClick = function () { var registerClick = function () {
var uname = $uname.val().trim(); var uname = $uname.val().trim();
@ -61,10 +62,13 @@ define([
if (Cred.isEmail(uname) && !I_REALLY_WANT_TO_USE_MY_EMAIL_FOR_MY_USERNAME) { if (Cred.isEmail(uname) && !I_REALLY_WANT_TO_USE_MY_EMAIL_FOR_MY_USERNAME) {
var emailWarning = [ var emailWarning = [
Messages.register_emailWarning0, Messages.register_emailWarning0,
br(), br(),
Messages.register_emailWarning1, Messages.register_emailWarning1,
br(), br(),
Messages.register_emailWarning2, Messages.register_emailWarning2,
br(), br(),
Messages.register_emailWarning3, Messages.register_emailWarning3,
].join('<br><br>'); ];
Feedback.send("EMAIL_USERNAME_WARNING", true); Feedback.send("EMAIL_USERNAME_WARNING", true);
@ -72,7 +76,7 @@ define([
if (!yes) { return; } if (!yes) { return; }
I_REALLY_WANT_TO_USE_MY_EMAIL_FOR_MY_USERNAME = true; I_REALLY_WANT_TO_USE_MY_EMAIL_FOR_MY_USERNAME = true;
registerClick(); registerClick();
}, {}, true); });
} }
/* basic validation */ /* basic validation */

@ -651,7 +651,7 @@ define([
done: function($dialog) { done: function($dialog) {
$dialog.find('> div').addClass('half'); $dialog.find('> div').addClass('half');
}, },
}, true); });
}; };
$(form).find('button').click(function() { $(form).find('button').click(function() {

Loading…
Cancel
Save