diff options
author | Michael Hamann <michael@content-space.de> | 2011-09-08 11:27:42 +0200 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2011-09-08 11:39:00 +0200 |
commit | fb46ebd87eb43d5cd9f67f353f6656d0e3a0b196 (patch) | |
tree | b89b580659168d8550dcca66fb0c303389b77aaf /lib/scripts/cookie.js | |
parent | aea34b5fe445064477d8ad0c98926db33a0d0851 (diff) | |
parent | cc2c0b9d6af82732ed79eeb85c22b7c3192a4e55 (diff) | |
download | rpg-fb46ebd87eb43d5cd9f67f353f6656d0e3a0b196.tar.gz rpg-fb46ebd87eb43d5cd9f67f353f6656d0e3a0b196.tar.bz2 |
Merge branch 'media-revisions'
This introduces a new media manager and media revisions to DokuWiki. The
changes have been implemented by Kate Arzamastseva and are the
result of a Google Summer of Code project, the official project page can
be found at
http://www.google-melange.com/gsoc/project/google/gsoc2011/kate/18001
Thanks to Kate for the work and Google for sponsoring it!
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]); } } - } + } }; |