diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-08-20 09:32:25 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-08-20 09:32:25 +0200 |
commit | ae7027de029e28fdd3894efe919b6171b2b11eab (patch) | |
tree | d2a83feb13621c5122d671dc9827ae3e2b38b0b3 /skins | |
parent | c8f35a17e645ec7328557846b976e38432c9a062 (diff) |
Added session_path config option and unified cookies settings in javascript
Diffstat (limited to 'skins')
-rw-r--r-- | skins/classic/splitter.js | 4 | ||||
-rw-r--r-- | skins/larry/ui.js | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/skins/classic/splitter.js b/skins/classic/splitter.js index 59ebb5151..3f1c97302 100644 --- a/skins/classic/splitter.js +++ b/skins/classic/splitter.js @@ -47,7 +47,7 @@ function rcube_splitter(attrib) rcube_event.add_listener({element: window, event:'resize', object:this, method:'onResize'}); // read saved position from cookie - var cookie = bw.get_cookie(this.id); + var cookie = rcmail.get_cookie(this.id); if (cookie && !isNaN(cookie)) { this.pos = parseFloat(cookie); this.resize(); @@ -197,7 +197,7 @@ function rcube_splitter(attrib) { var exp = new Date(); exp.setYear(exp.getFullYear() + 1); - bw.set_cookie(this.id, this.pos, exp); + rcmail.set_cookie(this.id, this.pos, exp); }; } // end class rcube_splitter diff --git a/skins/larry/ui.js b/skins/larry/ui.js index b6056b6ee..ca1680759 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -461,7 +461,7 @@ function rcube_mail_ui() var button = $(e.target), frame = $('#mailpreviewframe'), visible = !frame.is(':visible'), - splitter = mailviewsplit.pos || parseInt(bw.get_cookie('mailviewsplitter') || 320), + splitter = mailviewsplit.pos || parseInt(rcmail.get_cookie('mailviewsplitter') || 320), topstyles, bottomstyles, uid; frame.toggle(); @@ -974,7 +974,7 @@ function rcube_splitter(p) $(window).resize(onResize); // read saved position from cookie - var cookie = bw.get_cookie(this.id); + var cookie = rcmail.get_cookie(this.id); if (cookie && !isNaN(cookie)) { this.pos = parseFloat(cookie); this.resize(); @@ -1135,7 +1135,7 @@ function rcube_splitter(p) { var exp = new Date(); exp.setYear(exp.getFullYear() + 1); - bw.set_cookie(this.id, this.pos, exp); + rcmail.set_cookie(this.id, this.pos, exp); }; } // end class rcube_splitter |