fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [10081]


From: Torstein
Subject: [Fmsystem-commits] [10081]
Date: Tue, 02 Oct 2012 08:30:31 +0000

Revision: 10081
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10081
Author:   vator
Date:     2012-10-02 08:30:30 +0000 (Tue, 02 Oct 2012)
Log Message:
-----------


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

Added: trunk/logistic/js/logistic/ajax.js
===================================================================
--- trunk/logistic/js/logistic/ajax.js                          (rev 0)
+++ trunk/logistic/js/logistic/ajax.js  2012-10-02 08:30:30 UTC (rev 10081)
@@ -0,0 +1,32 @@
+$(document).ready(function(){
+
+       $("#select_activity").change(function () {
+               
+               alert("!");
+               /*
+                var location_code = $(this).val();
+                var thisForm = $(this).parents("form");
+
+                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;
+                        
+                        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;
+                }
+                */
+   }); 
+});
\ No newline at end of file


Property changes on: trunk/logistic/js/logistic/ajax.js
___________________________________________________________________
Added: svn:mime-type
   + text/plain




reply via email to

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