summaryrefslogtreecommitdiff
path: root/lib/scripts/cookie.js
diff options
context:
space:
mode:
authorMatthias Schulte <post@lupo49.de>2011-09-11 13:11:30 +0200
committerMatthias Schulte <post@lupo49.de>2011-09-11 13:11:30 +0200
commit1614eb9180008daaf518e6271b82222219efc008 (patch)
treebd9b3138f288fbc6786f3b28c7f3d438bf79c36f /lib/scripts/cookie.js
parente2b5ad84f88d0bd1fe510fa74673cc7557c6e630 (diff)
parent29d511bfa507384ae0872f75fb54acb44b1e915e (diff)
downloadrpg-1614eb9180008daaf518e6271b82222219efc008.tar.gz
rpg-1614eb9180008daaf518e6271b82222219efc008.tar.bz2
Merge branch 'master' of http://github.com/splitbrain/dokuwiki
Diffstat (limited to 'lib/scripts/cookie.js')
-rw-r--r--lib/scripts/cookie.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/scripts/cookie.js b/lib/scripts/cookie.js
index f97882855..4dd77beea 100644
--- a/lib/scripts/cookie.js
+++ b/lib/scripts/cookie.js
@@ -24,10 +24,10 @@ DokuCookie = {
this.data[key] = val;
//save the whole data array
- jQuery.each(this.data, function (val, key) {
- if (this.data.hasOwnProperty(key)) {
+ jQuery.each(this.data, function (key, val) {
+ if (DokuCookie.data.hasOwnProperty(key)) {
text += '#'+encodeURIComponent(key)+'#'+encodeURIComponent(val);
- }
+ }
});
jQuery.cookie(this.name,text.substr(1), {expires: 365, path: DOKU_BASE});
},
@@ -59,5 +59,5 @@ DokuCookie = {
this.data[decodeURIComponent(parts[i])] = decodeURIComponent(parts[i+1]);
}
}
- }
+ }
};