diff options
author | lupo49 <post@lupo49.de> | 2011-09-11 19:02:50 +0200 |
---|---|---|
committer | lupo49 <post@lupo49.de> | 2011-09-11 19:02:50 +0200 |
commit | ded84e755a312cf3c82cd910d35b371b64bec5be (patch) | |
tree | 2d3bd07085d8ba68c9d487cc90dae8132bdd5824 /lib/scripts/cookie.js | |
parent | e2b5ad84f88d0bd1fe510fa74673cc7557c6e630 (diff) | |
parent | 8bfdbb5efd72c2e708d005a977444400c7affcfa (diff) | |
download | rpg-ded84e755a312cf3c82cd910d35b371b64bec5be.tar.gz rpg-ded84e755a312cf3c82cd910d35b371b64bec5be.tar.bz2 |
Merge branch 'master' of github.com:lupo49/dokuwiki
Diffstat (limited to 'lib/scripts/cookie.js')
-rw-r--r-- | lib/scripts/cookie.js | 8 |
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]); } } - } + } }; |