fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [10183] Logistic: Moved handler function from one fil


From: Torstein
Subject: [Fmsystem-commits] [10183] Logistic: Moved handler function from one file to the other
Date: Tue, 09 Oct 2012 12:39:40 +0000

Revision: 10183
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10183
Author:   vator
Date:     2012-10-09 12:39:39 +0000 (Tue, 09 Oct 2012)
Log Message:
-----------
Logistic: Moved handler function from one file to the other

Modified Paths:
--------------
    trunk/logistic/js/logistic/activity.js
    trunk/logistic/js/logistic/ajax.js

Modified: trunk/logistic/js/logistic/activity.js
===================================================================
--- trunk/logistic/js/logistic/activity.js      2012-10-09 12:38:47 UTC (rev 
10182)
+++ trunk/logistic/js/logistic/activity.js      2012-10-09 12:39:39 UTC (rev 
10183)
@@ -1,4 +1,15 @@
 $(document).ready(function(){
-
+       $("#select_activity").change(function () {
+                var parent_id = $(this).val();
+                var thisForm = $(this).closest("form");
+                var project_id = 
$(thisForm).find("input[name=project_id]").val();
+                var activity_id = 
$(thisForm).find("input[name=activity_id]").val();
+                
+                var oArgs = {menuaction:'logistic.uiactivity.edit'};
+                var baseUrl = phpGWLink('index.php', oArgs, false);
+                var requestUrl = baseUrl + "&parent_id=" + parent_id + 
"&activity_id=" + activity_id;
+                        
+                window.location.href = requestUrl;
+  });  
        
 });
\ No newline at end of file

Modified: trunk/logistic/js/logistic/ajax.js
===================================================================
--- trunk/logistic/js/logistic/ajax.js  2012-10-09 12:38:47 UTC (rev 10182)
+++ trunk/logistic/js/logistic/ajax.js  2012-10-09 12:39:39 UTC (rev 10183)
@@ -1,15 +1,4 @@
 $(document).ready(function(){
 
-       $("#select_activity").change(function () {
-                var parent_id = $(this).val();
-                var thisForm = $(this).closest("form");
-                var project_id = 
$(thisForm).find("input[name=project_id]").val();
-                var activity_id = 
$(thisForm).find("input[name=activity_id]").val();
-                
-                var oArgs = {menuaction:'logistic.uiactivity.edit'};
-                var baseUrl = phpGWLink('index.php', oArgs, false);
-                var requestUrl = baseUrl + "&parent_id=" + parent_id + 
"&activity_id=" + activity_id;
-                        
-                window.location.href = requestUrl;
-   }); 
+       
 });
\ No newline at end of file




reply via email to

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