[otrs-cvs] otrs/var/httpd/htdocs/js Core.Agent.Admin.ProcessManagement.js, 1.59, 1.60

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/var/httpd/htdocs/js
In directory lancelot:/tmp/cvs-serv28867/var/httpd/htdocs/js

Modified Files:
	Core.Agent.Admin.ProcessManagement.js 
Log Message:
Eliminated unnecessary redraw when closing  a popup via "Cancel and close" link.

Author: mn

Index: Core.Agent.Admin.ProcessManagement.js
===================================================================
RCS file: /home/cvs/otrs/var/httpd/htdocs/js/Core.Agent.Admin.ProcessManagement.js,v
retrieving revision 1.59
retrieving revision 1.60
diff -2 -u -d -r1.59 -r1.60
--- Core.Agent.Admin.ProcessManagement.js	20 Nov 2012 08:09:03 -0000	1.59
+++ Core.Agent.Admin.ProcessManagement.js	27 Nov 2012 11:58:08 -0000	1.60
@@ -605,4 +605,5 @@
 
     TargetNS.HandlePopupClose = function () {
+        console.log('handle popup close');
         // update accordion
         Core.Agent.Admin.ProcessManagement.UpdateAccordion();
@@ -732,4 +733,8 @@
             window.opener.Core.Agent.Admin.ProcessManagement.HandlePopupClose();
         });
+
+        $('.ClosePopup').bind("click", function () {
+            $(window).unbind("beforeunload.PMPopup");
+        });
     };
 
@@ -915,4 +920,8 @@
             window.opener.Core.Agent.Admin.ProcessManagement.HandlePopupClose();
         });
+
+        $('.ClosePopup').bind("click", function () {
+            $(window).unbind("beforeunload.PMPopup");
+        });
     };
 
@@ -990,4 +999,8 @@
         });
 
+        $('.ClosePopup').bind("click", function () {
+            $(window).unbind("beforeunload.PMPopup");
+        });
+
     };
 
@@ -1024,4 +1037,8 @@
             window.opener.Core.Agent.Admin.ProcessManagement.HandlePopupClose();
         });
+
+        $('.ClosePopup').bind("click", function () {
+            $(window).unbind("beforeunload.PMPopup");
+        });
     };
 
@@ -1107,4 +1124,8 @@
             window.opener.Core.Agent.Admin.ProcessManagement.HandlePopupClose();
         });
+
+        $('.ClosePopup').bind("click", function () {
+            $(window).unbind("beforeunload.PMPopup");
+        });
     };
 
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.