diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-05-01 16:27:19 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-05-01 16:27:19 +0000 |
| commit | 2e1bb649248ce177fc1a4ea7c7c7c4745dc30a5a (patch) | |
| tree | 674d859c5ca4becae28140f19e9f47dc4bfe0068 /roundcubemail/program/js/common.js | |
| parent | 71e9f75c2be6c59bac0c514d6ef356bea8391ade (diff) | |
Started integrating GoogieSpell
git-svn-id: https://svn.roundcube.net/trunk@214 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/common.js')
| -rw-r--r-- | roundcubemail/program/js/common.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/roundcubemail/program/js/common.js b/roundcubemail/program/js/common.js index 8378e2e57..6cc279534 100644 --- a/roundcubemail/program/js/common.js +++ b/roundcubemail/program/js/common.js @@ -363,5 +363,36 @@ function rcube_get_object_pos(obj) return {x:iX, y:iY}; } + + +// cookie functions by GoogieSpell +function setCookie(name, value, expires, path, domain, secure) + { + var curCookie = name + "=" + escape(value) + + (expires ? "; expires=" + expires.toGMTString() : "") + + (path ? "; path=" + path : "") + + (domain ? "; domain=" + domain : "") + + (secure ? "; secure" : ""); + document.cookie = curCookie; + } + +function getCookie(name) + { + var dc = document.cookie; + var prefix = name + "="; + var begin = dc.indexOf("; " + prefix); + if (begin == -1) + { + begin = dc.indexOf(prefix); + if (begin != 0) return null; + } + else + begin += 2; + var end = document.cookie.indexOf(";", begin); + if (end == -1) + end = dc.length; + return unescape(dc.substring(begin + prefix.length, end)); + } + var bw = new roundcube_browser();
\ No newline at end of file |
