fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [8297] Added right click to


From: Torstein
Subject: [Fmsystem-commits] [8297] Added right click to
Date: Thu, 15 Dec 2011 08:16:17 +0000

Revision: 8297
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8297
Author:   vator
Date:     2011-12-15 08:16:16 +0000 (Thu, 15 Dec 2011)
Log Message:
-----------
Added right click to 

Modified Paths:
--------------
    trunk/controller/js/controller/ajax.js

Modified: trunk/controller/js/controller/ajax.js
===================================================================
--- trunk/controller/js/controller/ajax.js      2011-12-14 22:51:41 UTC (rev 
8296)
+++ trunk/controller/js/controller/ajax.js      2011-12-15 08:16:16 UTC (rev 
8297)
@@ -130,7 +130,7 @@
        
        // file: view_check_lists_for_location.xsl
        // Fetches info about a check list on hover status image icon
-       $("a.view_check_list").click(function(){
+       $('a.view_check_list').bind('contextmenu', function(){
                var thisA = $(this);
                var divWrp = $(this).parent();
                var requestUrl = $(thisA).attr("href");
@@ -182,13 +182,20 @@
                
                return false;
        });
+
+       $("a.view_check_list").click(function(){
+               var thisA = $(this);
+               
+               var check_list_id = $(thisA).find("span").text();
+               
+               location.href = 
"http://portico/pe/index.php?menuaction=controller.uicheck_list_for_location.edit_check_list_for_location&check_list_id=";
 + check_list_id;
+               
+               return false;
+       });
        
        $("a.view_check_list").mouseout(function(){
-               var thisA = $(this);
-               var divWrp = $(this).parent();
-               var requestUrl = $(thisA).attr("href");
+               var infoBox = $(this).parent().find("#info_box");
                
-               var infoBox = $(divWrp).find("#info_box");
                $(infoBox).hide();
        });
-});
+});
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]