[process] Generate process can be closed in modal popup
authorAsier Lostalé <asier.lostale@openbravo.com>
Mon, 24 Jan 2011 18:09:24 +0100
changeset 10108 7478341bfa2b
parent 10107 81eaa81faa30
child 10109 9252c832c17e
[process] Generate process can be closed in modal popup
src-wad/src/org/openbravo/wad/Template_ActionButton.html
--- a/src-wad/src/org/openbravo/wad/Template_ActionButton.html	Mon Jan 24 18:01:06 2011 +0100
+++ b/src-wad/src/org/openbravo/wad/Template_ActionButton.html	Mon Jan 24 18:09:24 2011 +0100
@@ -79,10 +79,6 @@
   return true;
 }
 
-function closeThisPage() {
-	parent.parent.window.close();
-	return true;
-}
 </script>
 	<script language="JavaScript" type="text/javascript">
 	function onLoadDo(){
@@ -328,7 +324,7 @@
                 <button type="button" 
                   id="buttonCancel" 
                   class="ButtonLink" 
-                  onclick="closeThisPage();return false;" 
+                  onclick="closePage();return false;" 
                   onfocus="buttonEvent('onfocus', this); window.status='xx'; return true;" 
                   onblur="buttonEvent('onblur', this);" 
                   onkeyup="buttonEvent('onkeyup', this);"