diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-11 10:00:12 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-11 10:00:12 +0100 |
commit | 364b1cd3915ab8d33f1a63f598be3acb4bfcf86a (patch) | |
tree | 401f02cc3a6b8d9ba28620fcd9ec6a31ef381ab7 /core/js/js.js | |
parent | bfc55fef89089fc43c6a352de860374ca3fcfd53 (diff) | |
parent | 60489764f37a6f344fa20e361a26c7a6006f9c97 (diff) | |
download | nextcloud-server-364b1cd3915ab8d33f1a63f598be3acb4bfcf86a.tar.gz nextcloud-server-364b1cd3915ab8d33f1a63f598be3acb4bfcf86a.zip |
Merge branch 'master' into fixing-998-master
Conflicts:
apps/files/js/files.js
Diffstat (limited to 'core/js/js.js')
-rw-r--r-- | core/js/js.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/core/js/js.js b/core/js/js.js index e2775fa7220..10758a90722 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -375,8 +375,15 @@ if(typeof localStorage !=='undefined' && localStorage !== null){ return localStorage.setItem(OC.localStorage.namespace+name,JSON.stringify(item)); }, getItem:function(name){ - if(localStorage.getItem(OC.localStorage.namespace+name)===null){return null;} - return JSON.parse(localStorage.getItem(OC.localStorage.namespace+name)); + var item = localStorage.getItem(OC.localStorage.namespace+name); + if(item===null) { + return null; + } else if (typeof JSON === 'undefined') { + //fallback to jquery for IE6/7/8 + return $.parseJSON(item); + } else { + return JSON.parse(item); + } } }; }else{ @@ -647,7 +654,7 @@ $(document).ready(function(){ $('.jp-controls .jp-previous').tipsy({gravity:'nw', fade:true, live:true}); $('.jp-controls .jp-next').tipsy({gravity:'n', fade:true, live:true}); $('.password .action').tipsy({gravity:'se', fade:true, live:true}); - $('#upload a').tipsy({gravity:'w', fade:true}); + $('#upload').tipsy({gravity:'w', fade:true}); $('.selectedActions a').tipsy({gravity:'s', fade:true, live:true}); $('a.delete').tipsy({gravity: 'e', fade:true, live:true}); $('a.action').tipsy({gravity:'s', fade:true, live:true}); |