Skip to content

Commit

Permalink
store $ZMI.getCachedValue in localStorage (KKI)
Browse files Browse the repository at this point in the history
svn path=/ZMS/branches/zms4/; revision=5912
  • Loading branch information
zmsdev committed Oct 26, 2020
1 parent e031fb2 commit fcf4627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Products/zms/plugins/www/zmi.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ ZMI.prototype.getLangStr = function(key, lang) {
/**
* Cache Ajax requests.
*/
ZMI.prototype.getCachedValue = function(k) {return localStorage.getItem("zmiCache["+k+"]");}
ZMI.prototype.getCachedValue = function(k) {return localStorage["zmiCache["+k+"]"];}
ZMI.prototype.setCachedValue = function(k,v) {localStorage.setItem("zmiCache["+k+"]",v);return v;}

/**
Expand Down

0 comments on commit fcf4627

Please sign in to comment.