[fusion-commits] r2448 - trunk/widgets/Redline
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Mon Nov 7 02:44:49 EST 2011
Author: liuar
Date: 2011-11-06 23:44:48 -0800 (Sun, 06 Nov 2011)
New Revision: 2448
Modified:
trunk/widgets/Redline/newmarkup.php
Log:
Issue:
cancel button doesn't work in the newmarkup.php
resolution:
add javasrcipt function to go back to markupmain.php
Modified: trunk/widgets/Redline/newmarkup.php
===================================================================
--- trunk/widgets/Redline/newmarkup.php 2011-11-04 01:28:50 UTC (rev 2447)
+++ trunk/widgets/Redline/newmarkup.php 2011-11-07 07:44:48 UTC (rev 2448)
@@ -213,7 +213,11 @@
elt.backgroundColor = "#" + labelBackColor;
elt.color = "#" + labelBackColor;
}
-
+
+ function Cancel()
+ {
+ window.location.href="markupmain.php?SESSION=<?= $args['SESSION']?>&MAPNAME=<?= $args['MAPNAME']?>";
+ }
</script>
</head>
@@ -451,8 +455,8 @@
<tr>
<td colspan="2" align="right">
<hr>
- <input class="Ctrl" name="" type="submit" value="OK" onclick="return CheckName()" style="width:85px">
- <input class="Ctrl" type="button" value="Cancel" style="width:85px">
+ <input class="Ctrl" name="" type="submit" value="OK" onClick="return CheckName()" style="width:85px">
+ <input class="Ctrl" type="button" value="Cancel" style="width:85px" onClick="return Cancel()">
</td>
</tr>
More information about the fusion-commits
mailing list