fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [10088] Logistic: Handler for selecting new parent ac


From: Torstein
Subject: [Fmsystem-commits] [10088] Logistic: Handler for selecting new parent activity
Date: Tue, 02 Oct 2012 12:17:23 +0000

Revision: 10088
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10088
Author:   vator
Date:     2012-10-02 12:17:22 +0000 (Tue, 02 Oct 2012)
Log Message:
-----------
Logistic: Handler for selecting new parent activity

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

Modified: trunk/logistic/js/logistic/ajax.js
===================================================================
--- trunk/logistic/js/logistic/ajax.js  2012-10-02 11:30:38 UTC (rev 10087)
+++ trunk/logistic/js/logistic/ajax.js  2012-10-02 12:17:22 UTC (rev 10088)
@@ -1,32 +1,24 @@
 $(document).ready(function(){
-       alert("!");
+
        $("#select_activity").change(function () {
-               
-               alert("!");
-               /*
-                var location_code = $(this).val();
-                var thisForm = $(this).parents("form");
+                var activity_id = $(this).val();
+                var thisForm = $(this).closest("form");
+                var project_id = 
$(thisForm).find("input[name=project_id]").val();
+                
+                /*
+                
 
                 var period_type = 
$(thisForm).find("input[name='period_type']").val();
                 var year = $(thisForm).find("input[name='year']").val();
                 var month = $(thisForm).find("input[name='month']").val();
                 
-                if(location_code != "" & period_type == 'view_month')
-                {
-                        var oArgs = 
{menuaction:'controller.uicalendar.view_calendar_for_month'};
-                        var baseUrl = phpGWLink('index.php', oArgs, false);
-                        var requestUrl = baseUrl + "&location_code=" + 
location_code + "&year=" + year + "&month=" + month;
+                var oArgs = 
{menuaction:'controller.uicalendar.view_calendar_for_month'};
+                var baseUrl = phpGWLink('index.php', oArgs, false);
+                var requestUrl = baseUrl + "&location_code=" + location_code + 
"&year=" + year + "&month=" + month;
                         
-                        window.location.href = requestUrl;
-                }
-                else if(location_code != "" & period_type == 'view_year')
-                {
-                        var oArgs = 
{menuaction:'controller.uicalendar.view_calendar_for_year'};
-                        var baseUrl = phpGWLink('index.php', oArgs, false);
-                        var requestUrl = baseUrl +  "&location_code=" + 
location_code + "&year=" + year;
-                        
-                        window.location.href = requestUrl;
-                }
+                window.location.href = requestUrl;
+               
+                
                 */
    }); 
 });
\ No newline at end of file




reply via email to

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