diff --git a/http/js/iznik/views/user/user.js b/http/js/iznik/views/user/user.js index 25aabd641..84c5d6b18 100644 --- a/http/js/iznik/views/user/user.js +++ b/http/js/iznik/views/user/user.js @@ -106,7 +106,10 @@ define([ whitelist: function () { var self = this - var v = new Iznik.Views.ModTools.EnterReason() + var v = new Iznik.Views.ModTools.EnterReason({ + whitelist: true + }); + self.listenToOnce(v, 'reason', function (reason) { $.ajax({ url: API + 'spammers', @@ -907,8 +910,6 @@ define([ }) Iznik.Views.ModTools.EnterReason = Iznik.Views.Modal.extend({ - template: 'modtools_members_spam_reason', - events: { 'click .js-cancel': 'close', 'click .js-confirm': 'confirm' @@ -927,7 +928,10 @@ define([ }, render: function () { - var self = this + var self = this; + + this.template = this.options.whitelist ? 'modtools_members_spam_reasonwhitelist' : 'modtools_members_spam_reason'; + this.open(this.template) return (this) diff --git a/http/template/modtools/members/spam/reasonwhitelist.html b/http/template/modtools/members/spam/reasonwhitelist.html new file mode 100644 index 000000000..54d55eb56 --- /dev/null +++ b/http/template/modtools/members/spam/reasonwhitelist.html @@ -0,0 +1,25 @@ +