correct some unncessary instances of raw HTML injection
parent
384d4be864
commit
72bf3696ee
|
@ -1733,7 +1733,7 @@ define([
|
|||
removeSelected();
|
||||
refresh();
|
||||
});
|
||||
}, null, true);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -45,6 +45,7 @@ define([
|
|||
var test;
|
||||
|
||||
var I_REALLY_WANT_TO_USE_MY_EMAIL_FOR_MY_USERNAME = false;
|
||||
var br = function () { return h('br'); };
|
||||
|
||||
var registerClick = function () {
|
||||
var uname = $uname.val().trim();
|
||||
|
@ -61,10 +62,13 @@ define([
|
|||
if (Cred.isEmail(uname) && !I_REALLY_WANT_TO_USE_MY_EMAIL_FOR_MY_USERNAME) {
|
||||
var emailWarning = [
|
||||
Messages.register_emailWarning0,
|
||||
br(), br(),
|
||||
Messages.register_emailWarning1,
|
||||
br(), br(),
|
||||
Messages.register_emailWarning2,
|
||||
br(), br(),
|
||||
Messages.register_emailWarning3,
|
||||
].join('<br><br>');
|
||||
];
|
||||
|
||||
Feedback.send("EMAIL_USERNAME_WARNING", true);
|
||||
|
||||
|
@ -72,7 +76,7 @@ define([
|
|||
if (!yes) { return; }
|
||||
I_REALLY_WANT_TO_USE_MY_EMAIL_FOR_MY_USERNAME = true;
|
||||
registerClick();
|
||||
}, {}, true);
|
||||
});
|
||||
}
|
||||
|
||||
/* basic validation */
|
||||
|
|
|
@ -651,7 +651,7 @@ define([
|
|||
done: function($dialog) {
|
||||
$dialog.find('> div').addClass('half');
|
||||
},
|
||||
}, true);
|
||||
});
|
||||
};
|
||||
|
||||
$(form).find('button').click(function() {
|
||||
|
|
Loading…
Reference in New Issue