[Vtigercrm-commits] [vtiger-commits] r4575 - /vtigercrm/trunk/include/js/clock.js

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Mar 28 02:46:59 EST 2006


Author: saraj
Date: Tue Mar 28 00:46:55 2006
New Revision: 4575

Log:
common function related to cookies has been removed

Modified:
    vtigercrm/trunk/include/js/clock.js

Modified: vtigercrm/trunk/include/js/clock.js
==============================================================================
--- vtigercrm/trunk/include/js/clock.js (original)
+++ vtigercrm/trunk/include/js/clock.js Tue Mar 28 00:46:55 2006
@@ -203,39 +203,6 @@
 	ClockAndAssign();
 }
 
-// Setting cookies
-function set_cookie ( name, value, exp_y, exp_m, exp_d, path, domain, secure )
-{
-  var cookie_string = name + "=" + escape ( value );
-
-  if (exp_y) //delete_cookie(name)
-  {
-    var expires = new Date ( exp_y, exp_m, exp_d );
-    cookie_string += "; expires=" + expires.toGMTString();
-  }
-
-  if (path) cookie_string += "; path=" + escape ( path );
-  if (domain) cookie_string += "; domain=" + escape ( domain );
-  if (secure) cookie_string += "; secure";
-
-  document.cookie = cookie_string;
-}
-
-// Retrieving cookies
-function get_cookie(cookie_name)
-{
-  var results = document.cookie.match(cookie_name + '=(.*?)(;|$)');
-  if (results) return (unescape(results[1]));
-  else return null;
-}
-
-// Delete cookies 
-function delete_cookie( cookie_name )
-{
-  var cookie_date = new Date ( );  // current date & time
-  cookie_date.setTime ( cookie_date.getTime() - 1 );
-  document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString();
-}
 
 if (get_cookie("timezone")==null || get_cookie("timezone")==false || get_cookie("timezone")<0 || get_cookie("timezone")=="1") {
 	lcl(0,true)





More information about the vtigercrm-commits mailing list