[Vtigercrm-commits] [vtiger-commits] r5782 - /vtigercrm/trunk/modules/Calendar/script.js

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue May 9 06:30:44 EDT 2006


Author: saraj
Date: Tue May  9 04:30:35 2006
New Revision: 5782

Log:
js functions have been included for new calendar UI

Modified:
    vtigercrm/trunk/modules/Calendar/script.js

Modified: vtigercrm/trunk/modules/Calendar/script.js
==============================================================================
--- vtigercrm/trunk/modules/Calendar/script.js (original)
+++ vtigercrm/trunk/modules/Calendar/script.js Tue May  9 04:30:35 2006
@@ -260,3 +260,53 @@
         }
         document.SharingForm.sharedid.value = selectedColStr;
 }
+
+function ajaxCalSaveResponse(response)
+{
+        document.getElementById("hrView_default").style.display = "none";
+        document.getElementById("toggleDiv").innerHTML=response.responseText;
+}
+
+function fnRedirect(view,hour,day,month,year){
+        var ajaxObj = new Ajax(ajaxCalSaveResponse);
+        var tagName =  document.getElementById('viewBox');
+        var OptionData = tagName.options[tagName.selectedIndex].value;
+        if(OptionData == 'hourview'){
+                var urlstring ="module=Calendar&action=CalendarAjax&view="+view+"&hour="+hour+"&day="+day+"&month="+month+"&year="+year+"&type="+OptionData+"&parenttab=My Home Page&ajax=true";
+        }
+        else if(OptionData == 'listview'){
+                var urlstring ="module=Calendar&action=CalendarAjax&view="+view+"&hour="+hour+"&day="+day+"&month="+month+"&year="+year+"&type="+OptionData+"&parenttab=My Home Page&ajax=true";
+        }
+        ajaxObj.process("index.php?",urlstring);
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+





More information about the vtigercrm-commits mailing list