[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/koha-tmpl/opac-tmpl/prog/en/includes baske... [rel_3_0]
From: |
Antoine Farnault |
Subject: |
[Koha-cvs] koha/koha-tmpl/opac-tmpl/prog/en/includes baske... [rel_3_0] |
Date: |
Tue, 09 Jan 2007 08:51:40 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_3_0
Changes by: Antoine Farnault <toins> 07/01/09 08:51:40
Modified files:
koha-tmpl/opac-tmpl/prog/en/includes: basket.js
Log message:
sync with dev_week ( Altered the read cookie js to be able to handle
finding the bib_list whereever it appears in the cookie info
)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/opac-tmpl/prog/en/includes/basket.js?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.2&r2=1.1.2.3
Patches:
Index: basket.js
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/opac-tmpl/prog/en/includes/basket.js,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -b -r1.1.2.2 -r1.1.2.3
--- basket.js 14 Dec 2006 18:09:20 -0000 1.1.2.2
+++ basket.js 9 Jan 2007 08:51:39 -0000 1.1.2.3
@@ -45,18 +45,13 @@
else {
str_cookie = parent.document.cookie;
}
- var coo_len = str_cookie.length;
- var i = 0;
-
- while (i < coo_len) {
- var j = i + str_len;
- if (str_cookie.substring(i, j) == str_name)
- return readCookieValue(str_cookie, j);
- i = str_cookie.indexOf(" ", i) + 1;
- if (i == 0)
- break;
+ // fixed - getting the part of the basket that is bib_list
+ var cookie_parts = str_cookie.split(";");
+ for(var i=0;i < cookie_parts.length;i++) {
+ var c = cookie_parts[i];
+ while (c.charAt(0)==' ') c = c.substring(1,c.length);
+ if(c.indexOf(str_name) == 0) return
c.substring(str_name.length,c.length);
}
-
return null;
}
- [Koha-cvs] koha/koha-tmpl/opac-tmpl/prog/en/includes baske... [rel_3_0],
Antoine Farnault <=