Commit 77d29ce6 authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

Bug 640719: Allow creating bookmarkable templates without passing validation,

on enter_bug.cgi r=pyrzak, a=mkanat
parent ab962c79
......@@ -22,7 +22,15 @@
/* This library assumes that the needed YUI libraries have been loaded
already. */
var bz_no_validate_enter_bug = false;
function validateEnterBug(theform) {
// This is for the "bookmarkable templates" button.
if (bz_no_validate_enter_bug) {
// Set it back to false for people who hit the "back" button
bz_no_validate_enter_bug = false;
return true;
}
var component = theform.component;
var short_desc = theform.short_desc;
var version = theform.version;
......
......@@ -711,7 +711,7 @@ TUI_hide_default('attachment_text_field');
    
<input type="submit" name="maketemplate" id="maketemplate"
value="Remember values as bookmarkable template"
class="expert_fields">
onclick="bz_no_validate_enter_bug=true" class="expert_fields">
</td>
</tr>
</tbody>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment