diff options
author | Michal Rezler <rezlemic@fel.cvut.cz> | 2011-03-28 23:09:13 +0200 |
---|---|---|
committer | Michal Rezler <rezlemic@fel.cvut.cz> | 2011-03-28 23:09:13 +0200 |
commit | 2ed49e2ac1bc9ed8a9d514d3ea9515e455768152 (patch) | |
tree | e6dc99486f47cdeea96f2c43a648baad22db9014 /lib/scripts/script.js | |
parent | 11bf24d856a6a4cb606bc6fe10ebcbd844f4127f (diff) | |
download | dokuwiki-2ed49e2ac1bc9ed8a9d514d3ea9515e455768152.tar.gz dokuwiki-2ed49e2ac1bc9ed8a9d514d3ea9515e455768152.zip |
JS API is corrected to the original state
Diffstat (limited to 'lib/scripts/script.js')
-rw-r--r-- | lib/scripts/script.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/scripts/script.js b/lib/scripts/script.js index 09e61d88d..a99735c99 100644 --- a/lib/scripts/script.js +++ b/lib/scripts/script.js @@ -358,14 +358,14 @@ function initSizeCtl(ctlid,edid){ var textarea = $(edid); if(!ctl || !textarea) return; - var hgt = getDokuCookie('sizeCtl'); + var hgt = DokuCookie.getValue('sizeCtl'); if(hgt){ textarea.style.height = hgt; }else{ textarea.style.height = '300px'; } - var wrp = getDokuCookie('wrapCtl'); + var wrp = DokuCookie.getValue('wrapCtl'); if(wrp){ setWrap(textarea, wrp); } // else use default value @@ -393,7 +393,7 @@ function sizeCtl(edid,val){ height += val; textarea.style.height = height+'px'; - setDokuCookie('sizeCtl',textarea.style.height); + DokuCookie.setValue('sizeCtl',textarea.style.height); } /** @@ -408,7 +408,7 @@ function toggleWrap(edid){ setWrap(textarea, 'off'); } - setDokuCookie('wrapCtl',textarea.getAttribute('wrap')); + DokuCookie.setValue('wrapCtl',textarea.getAttribute('wrap')); } /** |