From 77d29ce6ca5579674b9c9c4c081bf2f10137f35f Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Wed, 27 Apr 2011 15:01:52 -0700 Subject: Bug 640719: Allow creating bookmarkable templates without passing validation, on enter_bug.cgi r=pyrzak, a=mkanat --- js/field.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'js') diff --git a/js/field.js b/js/field.js index bd5c3b4c8..949c210a3 100644 --- a/js/field.js +++ b/js/field.js @@ -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; -- cgit v1.2.3-24-g4f1b