From c38ad3504126df389d55e4b329504cf8ad7ab4c3 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 6 Sep 2015 15:36:38 -0500 Subject: [PATCH] Require selecting a close result. --- tfdclerk.js | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/tfdclerk.js b/tfdclerk.js index fd48592..1714028 100644 --- a/tfdclerk.js +++ b/tfdclerk.js @@ -333,15 +333,18 @@ TFD.prototype._is_merge = function() { .text() == "Propose merging"; }; +TFD.prototype._on_close_result_change = function() { + this._unblock_submit("no-close-result"); + // TODO: possibly disable/enable individual close actions +}; + TFD.prototype._build_close_results = function() { if (this._is_merge()) - var choices = ["Merge", "Do not merge", "No consensus"]; + var choices = ["Merge", "Do not merge", "No consensus", "Other"]; else - var choices = ["Delete", "Keep", "Redirect", "No consensus"]; - - // TODO: block submit until one is selected; possibly disable individual - // action options based on what is picked + var choices = ["Delete", "Keep", "Redirect", "No consensus", "Other"]; + var self = this; var elems = $("
"); $("