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 /program/js/app.js | |
parent | c8f35a17e645ec7328557846b976e38432c9a062 (diff) |
Added session_path config option and unified cookies settings in javascript
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js index e8bb6c1a7..9ca16b39c 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -6585,6 +6585,12 @@ function rcube_webmail() return 0; }; + // Cookie setter + this.set_cookie = function(name, value, expires) + { + setCookie(name, value, expires, this.env.cookie_path, this.env.cookie_domain, this.env.cookie_secure); + } + } // end object rcube_webmail @@ -6615,6 +6621,8 @@ rcube_webmail.long_subject_title_ie = function(elem, indent) } }; +rcube_webmail.prototype.get_cookie = getCookie; + // copy event engine prototype rcube_webmail.prototype.addEventListener = rcube_event_engine.prototype.addEventListener; rcube_webmail.prototype.removeEventListener = rcube_event_engine.prototype.removeEventListener; |