summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-01-11 10:00:12 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-01-11 10:00:12 +0100
commit364b1cd3915ab8d33f1a63f598be3acb4bfcf86a (patch)
tree401f02cc3a6b8d9ba28620fcd9ec6a31ef381ab7 /core/js/js.js
parentbfc55fef89089fc43c6a352de860374ca3fcfd53 (diff)
parent60489764f37a6f344fa20e361a26c7a6006f9c97 (diff)
downloadnextcloud-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.js13
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});