From e46469eecd4cb010edef9e4c2a64fa5da07834d3 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 19 Mar 2007 00:04:28 +0000 Subject: [PATCH] r1510: In draw_cancel() [templates/global.js] we can't use double quotes for window.location because that wouldn't mesh well with being placed inside an onclick attribute... in fact I dare say it would down right break it. --- docs/changes.txt | 1 + templates/global.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changes.txt b/docs/changes.txt index bfac156..7ed935b 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -17,6 +17,7 @@ - Enhancement: Users can now belong to a single primary usergroup and multiple secondary groups, greatly increasing permission flexibility - Enahncement: Usergroups can be cloned to allow fast duplication of permissions - Fixed: Even after calling UsergroupAPI::delete(), there would still be usergroup remnants in bugfieldpermission and permission tables +- Fixed: The javascript cancel buttons wouldn't work due to a parse error 1.2.0 Beta 1 =============================== diff --git a/templates/global.js b/templates/global.js index 741ab40..064d346 100644 --- a/templates/global.js +++ b/templates/global.js @@ -20,7 +20,7 @@ function draw_cancel(location) { - location = (location == "" ? "history.back(1)" : "window.location=\"" + location + "\""); + location = (location == "" ? "history.back(1)" : "window.location='" + location + "'"); document.write(""); } -- 2.22.5