diff --git a/tfdclerk.js b/tfdclerk.js index 16d0646..f37c11a 100644 --- a/tfdclerk.js +++ b/tfdclerk.js @@ -200,6 +200,7 @@ TFD.prototype._add_option_box = function(verb, title, callback, options) { text: verb.charAt(0).toUpperCase() + verb.slice(1), addClass: "tfdclerk-submit mw-ui-button mw-ui-progressive", style: "margin-right: 0.5em;", + disabled: this._submit_blockers.length > 0, click: function() { callback.call(self); } })) .append($("", { @@ -282,14 +283,14 @@ TFD.prototype._build_close_results = function() { }; TFD.prototype._add_close_actions = function() { + this._block_submit("add-close-actions"); this._with_content(function(content) { var regex = /\{\{tfd links\|(.*?)(\||\}\})/gi, match = regex.exec(content); if (match === null) return this._error("no templates found in section"); - var actions = this.box.find(".tfdclerk-actions"), - list = $("