diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-03 12:11:04 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-03 12:11:04 +0000 |
| commit | 39e347ed53c24c87c7d74266306c986830e09ade (patch) | |
| tree | 66f7f7cec2568ea798b197fb253a525fa2af83cd /roundcubemail/program/js/common.js | |
| parent | be2f37f2eb8989dbc8823cc2d1919839926351a4 (diff) | |
Remember search modifiers in user prefs (#1486146) + bring back the old defaults
git-svn-id: https://svn.roundcube.net/trunk@3310 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/common.js')
| -rw-r--r-- | roundcubemail/program/js/common.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roundcubemail/program/js/common.js b/roundcubemail/program/js/common.js index c66ea7655..70ef4446b 100644 --- a/roundcubemail/program/js/common.js +++ b/roundcubemail/program/js/common.js @@ -490,6 +490,20 @@ function find_in_array() return -1; } +// recursively copy an object +function rcube_clone_object(obj) +{ + var out = {}; + + for (var key in obj) { + if (obj[key] && typeof obj[key] == 'object') + out[key] = clone_object(obj[key]); + else + out[key] = obj[key]; + } + + return out; +} // make a string URL safe function urlencode(str) |
