[open-ils-commits] [GIT] Evergreen ILS branch rel_2_0 updated. 131957cd2676b17085905e5e10be87234c563bf9

Evergreen Git git at git.evergreen-ils.org
Mon Jun 13 10:27:08 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_0 has been updated
       via  131957cd2676b17085905e5e10be87234c563bf9 (commit)
      from  d164e07bd250886804239f851e0ccd7c2b47892d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 131957cd2676b17085905e5e10be87234c563bf9
Author: Dan Scott <dan at coffeecode.net>
Date:   Tue May 31 13:55:29 2011 -0400

    Remove all references to Cookie(s).js and Cookies.js
    
    Dojo toolkit is the new Cookie manager, so any lingering
    references to Cookie.js (a typo in any case) are no longer
    valid, and we no longer need to ship Cookies.js with
    Evergreen.
    
    Cookie.js typo was reported by Steven Chan in LP 790429
    
    Signed-off-by: Dan Scott <dscott at laurentian.ca>
    Signed-off-by: Dan Scott <dan at coffeecode.net>

diff --git a/Open-ILS/web/opac/common/js/Cookies.js b/Open-ILS/web/opac/common/js/Cookies.js
deleted file mode 100644
index 21b8dc8..0000000
--- a/Open-ILS/web/opac/common/js/Cookies.js
+++ /dev/null
@@ -1,123 +0,0 @@
-// HTTP.Cookies - Burak Gürsoy <burak[at]cpan[dot]org>
-
-/*
-I removed all the docs (except author and license info) to reduce download size
--bill erickson <billserickson at gmail.com>
-*/
-
-if (!HTTP) var HTTP = {}; // create base class if undefined
-
-HTTP.Cookies = function () { // HTTP.Cookies constructor
-   this.JAR = ''; // data cache
-}
-
-HTTP.Cookies.VERSION = '1.01';
-
-HTTP.Cookies.Date = function () { // expire time calculation class
-   this.format = {
-   's' : 1,
-   'm' : 60,
-   'h' : 60 * 60,
-   'd' : 60 * 60 * 24,
-   'M' : 60 * 60 * 24 * 30,
-   'y' : 60 * 60 * 24 * 365
-   };
-}
-
-HTTP.Cookies.Date.prototype.parse = function (x) {
-   if(!x || x == 'now') return 0;
-   var date = x.match(/^(.+?)(\w)$/i);
-   var of = 0;
-   return (this.is_num(date[1]) && (of = this.is_date(date[1],date[2]))) ? of : 0;
-}
-
-HTTP.Cookies.Date.prototype.is_date = function (num, x) {
-   if (!x || x.length != 1) return 0;
-   var ar = [];
-   return (ar = x.match(/^(s|m|h|d|w|M|y)$/) ) ? num * 1000 * this.format[ar[0]] : 0;
-}
-
-HTTP.Cookies.Date.prototype.is_num = function (x) {
-   if (x.length == 0) return;
-   var ok = 1;
-   for (var i = 0; i < x.length; i++) {
-      if ("0123456789.-+".indexOf(x.charAt(i)) == -1) {
-         ok--;
-         break;
-      }
-   }
-   return ok;
-}
-
-HTTP.Cookies.prototype.date = new HTTP.Cookies.Date; // date object instance
-
-// Get the value of the named cookie. Usage: password = cookie.read('password');
-HTTP.Cookies.prototype.read = function (name) {
-   var value  = '';
-   if(!this.JAR) {
-		this.JAR = {};
-      var array  = document.cookie.split(';');
-      for (var x = 0; x < array.length; x++) {
-         var pair = array[x].split('=');
-         if(pair[0].substring (0,1) == ' ') pair[0] = pair[0].substring(1, pair[0].length);
-         if(pair[0] == name) {
-            value = pair[1];
-         }
-         this.JAR[pair[0]] = pair[1];
-      }
-   } else {
-      for(var cookie in this.JAR) {
-         if(cookie == name) {
-            value = this.JAR[cookie];
-         }
-	   }
-   }
-   return value ? unescape(value) : '';
-}
-
-// Create a new cookie or overwrite existing. Usage: cookie.write('password', 'secret', '1m');
-HTTP.Cookies.prototype.write = function (name, value, expires, path, domain, secure) {
-   var extra = '';
-   if (!expires) expires = '';
-   if (expires == '_epoch') {
-      expires = new Date(0);
-   } else if (expires != -1) {
-      var Now  = new Date;
-      Now.setTime(Now.getTime() + this.date.parse(expires));
-      expires = Now.toGMTString();
-   }
-   if(expires != -1 && expires) extra += "; expires=" + expires;
-   if(path   ) extra += "; path="    + path;
-   if(domain ) extra += "; domain="  + domain;
-   if(secure ) extra += "; secure="  + secure;
-   document.cookie = name + "=" + escape(value) + extra;
-}
-
-// Delete the named cookie. Usage: cookie.remove('password');
-HTTP.Cookies.prototype.remove = function (name, path, domain, secure) {
-   this.write(name, '', '_epoch', path, domain, secure);
-}
-
-/*
-
-=head1 NAME
-
-HTTP.Cookies - JavaScript class for reading, writing and deleting cookies
-
-=head1 AUTHOR
-
-Burak Gürsoy, E<lt>burakE<64>cpan.orgE<gt>
-
-=head1 COPYRIGHT
-
-Copyright 2005 Burak Gürsoy. All rights reserved.
-
-=head1 LICENSE
-
-This library is free software; you can redistribute it and/or modify
-it under the terms of the "Artistic License":
-L<http://dev.perl.org/licenses/artistic.html>.
-
-=cut
-
-*/
diff --git a/Open-ILS/web/reports/oils_rpt_common.xhtml b/Open-ILS/web/reports/oils_rpt_common.xhtml
index 31d4f79..c1aad54 100644
--- a/Open-ILS/web/reports/oils_rpt_common.xhtml
+++ b/Open-ILS/web/reports/oils_rpt_common.xhtml
@@ -24,7 +24,6 @@
 <script type='text/javascript' src='/opac/common/js/utils.js'> </script>
 <script type='text/javascript' src='/opac/common/js//config.js'> </script> 
 <script type='text/javascript' src='/opac/common/js/CGI.js'> </script>
-<script type='text/javascript' src='/opac/common/js/Cookie.js'> </script>
 <script type='text/javascript' src='/opac/common/js/JSON_v1.js'> </script>
 <script type='text/javascript' src='/opac/common/js/fmall.js'> </script>
 <script type='text/javascript' src='/opac/common/js/fmgen.js'> </script>
diff --git a/Open-ILS/xul/staff_client/server/admin/cash_reports.xhtml b/Open-ILS/xul/staff_client/server/admin/cash_reports.xhtml
index 4c16df2..eadabca 100644
--- a/Open-ILS/xul/staff_client/server/admin/cash_reports.xhtml
+++ b/Open-ILS/xul/staff_client/server/admin/cash_reports.xhtml
@@ -13,7 +13,6 @@
         <script language='javascript' src='/opac/common/js/utils.js'> </script>
         <script language='javascript' src='/opac/common/js//config.js'> </script>
         <script language='javascript' src='/opac/common/js/CGI.js'> </script>
-        <script language='javascript' src='/opac/common/js/Cookie.js'> </script>
     
         <script language='javascript' src='/opac/common/js/JSON_v1.js'> </script>
         <script language='javascript' src='/opac/common/js/fmall.js'> </script>
diff --git a/Open-ILS/xul/staff_client/server/admin/copy_locations.xhtml b/Open-ILS/xul/staff_client/server/admin/copy_locations.xhtml
index aee7440..189df60 100644
--- a/Open-ILS/xul/staff_client/server/admin/copy_locations.xhtml
+++ b/Open-ILS/xul/staff_client/server/admin/copy_locations.xhtml
@@ -20,7 +20,6 @@
         <script language='javascript' src='/opac/common/js/utils.js'> </script>
         <script language='javascript' src='/opac/common/js//config.js'> </script>
         <script language='javascript' src='/opac/common/js/CGI.js'> </script>
-        <script language='javascript' src='/opac/common/js/Cookie.js'> </script>
     
         <script language='javascript' src='/opac/common/js/JSON_v1.js'> </script>
         <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
diff --git a/Open-ILS/xul/staff_client/server/admin/hold_pull_list.xhtml b/Open-ILS/xul/staff_client/server/admin/hold_pull_list.xhtml
index 355c655..e0fad8a 100644
--- a/Open-ILS/xul/staff_client/server/admin/hold_pull_list.xhtml
+++ b/Open-ILS/xul/staff_client/server/admin/hold_pull_list.xhtml
@@ -15,7 +15,6 @@
         <script language='javascript' src='/opac/common/js/utils.js'> </script>
         <script language='javascript' src='/opac/common/js//config.js'> </script> 
         <script language='javascript' src='/opac/common/js/CGI.js'> </script>
-        <script language='javascript' src='/opac/common/js/Cookie.js'> </script>
     
         <script language='javascript' src='/opac/common/js/JSON_v1.js'> </script>
         <script language='javascript' src='/opac/common/js/fmall.js'> </script>
diff --git a/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml b/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml
index dc00ec3..c689400 100644
--- a/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml
+++ b/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml
@@ -14,7 +14,6 @@
         <script language='javascript' src='/opac/common/js/utils.js'> </script>
         <script language='javascript' src='/opac/common/js//config.js'> </script> 
         <script language='javascript' src='/opac/common/js/CGI.js'> </script>
-        <script language='javascript' src='/opac/common/js/Cookie.js'> </script>
     
         <script language='javascript' src='/opac/common/js/JSON_v1.js'> </script>
         <script language='javascript' src='/opac/common/js/fmall.js'> </script>
diff --git a/Open-ILS/xul/staff_client/server/admin/non_cat_types.xhtml b/Open-ILS/xul/staff_client/server/admin/non_cat_types.xhtml
index 0e8b6b0..803b8ca 100644
--- a/Open-ILS/xul/staff_client/server/admin/non_cat_types.xhtml
+++ b/Open-ILS/xul/staff_client/server/admin/non_cat_types.xhtml
@@ -13,7 +13,6 @@
         <script language='javascript' src='/opac/common/js/utils.js'> </script>
         <script language='javascript' src='/opac/common/js//config.js'> </script>
         <script language='javascript' src='/opac/common/js/CGI.js'> </script>
-        <script language='javascript' src='/opac/common/js/Cookie.js'> </script>
     
         <script language='javascript' src='/opac/common/js/JSON_v1.js'> </script>
         <script language='javascript' src='/opac/common/js/fmall.js'> </script>
diff --git a/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.xhtml b/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.xhtml
index b468a97..c161eb8 100644
--- a/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.xhtml
+++ b/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.xhtml
@@ -13,7 +13,6 @@
         <script language='javascript' src='/opac/common/js/utils.js'> </script>
         <script language='javascript' src='/opac/common/js//config.js'> </script> 
         <script language='javascript' src='/opac/common/js/CGI.js'> </script>
-        <script language='javascript' src='/opac/common/js/Cookie.js'> </script>
     
         <script language='javascript' src='/opac/common/js/JSON_v1.js'> </script>
         <script language='javascript' src='/opac/common/js/fmall.js'> </script>
diff --git a/Open-ILS/xul/staff_client/server/patron/user_edit.xhtml b/Open-ILS/xul/staff_client/server/patron/user_edit.xhtml
index bbb09fd..8bdf628 100644
--- a/Open-ILS/xul/staff_client/server/patron/user_edit.xhtml
+++ b/Open-ILS/xul/staff_client/server/patron/user_edit.xhtml
@@ -13,7 +13,6 @@
                 <script language='javascript' src='/opac/common/js/utils.js'> </script>
                 <script language='javascript' src='/opac/common/js//config.js'> </script>
                 <script language='javascript' src='/opac/common/js/CGI.js'> </script>
-                <script language='javascript' src='/opac/common/js/Cookie.js'> </script>
 
                 <script language='javascript' src='/opac/common/js/slimtree.js'> </script>
                 <script language='javascript' src='/opac/common/js/JSON_v1.js'> </script>

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/opac/common/js/Cookies.js             |  123 --------------------
 Open-ILS/web/reports/oils_rpt_common.xhtml         |    1 -
 .../staff_client/server/admin/cash_reports.xhtml   |    1 -
 .../staff_client/server/admin/copy_locations.xhtml |    1 -
 .../staff_client/server/admin/hold_pull_list.xhtml |    1 -
 .../server/admin/hold_pull_list_classic.xhtml      |    1 -
 .../staff_client/server/admin/non_cat_types.xhtml  |    1 -
 .../server/admin/stat_cat_editor.xhtml             |    1 -
 .../xul/staff_client/server/patron/user_edit.xhtml |    1 -
 9 files changed, 0 insertions(+), 131 deletions(-)
 delete mode 100644 Open-ILS/web/opac/common/js/Cookies.js


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list