Switch the 'modify' code of admin/field.php to use templates
[bugdar.git] / templates / global.js
1 /*=====================================================================*\
2 || ###################################################################
3 || # Bugdar
4 || # Copyright (c)2004-2009 Blue Static
5 || #
6 || # This program is free software; you can redistribute it and/or modify
7 || # it under the terms of the GNU General Public License as published by
8 || # the Free Software Foundation; version 2 of the License.
9 || #
10 || # This program is distributed in the hope that it will be useful, but
11 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 || # more details.
14 || #
15 || # You should have received a copy of the GNU General Public License along
16 || # with this program; if not, write to the Free Software Foundation, Inc.,
17 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
18 || ###################################################################
19 \*=====================================================================*/
20
21 function draw_cancel(location)
22 {
23 location = (location == "" ? "history.back(1)" : "window.location='" + location + "'");
24 document.write("<input name=\"cancel\" type=\"button\" value=\"" + lang["Cancel"] + "\" onclick=\"" + location + "\" />");
25 }
26
27 /*=====================================================================*\
28 || ###################################################################
29 || # $HeadURL$
30 || # $Id$
31 || ###################################################################
32 \*=====================================================================*/