use Ox.localStorage
This commit is contained in:
parent
1550afeea2
commit
83b4ab91be
|
@ -246,10 +246,10 @@ pandora.ui.textArea = function() {
|
|||
|
||||
save: function() {
|
||||
var filename = $video.options("video");
|
||||
localStorage[filename] = that.value();
|
||||
pandora.storage(filename, that.value);
|
||||
},
|
||||
load: function(filename) {
|
||||
var val = localStorage[filename] || '';
|
||||
var val = pandora.storage(filename) || '';
|
||||
that.value(val);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
}, loadSpeedtrans);
|
||||
|
||||
function loadSpeedtrans(browserSupported) {
|
||||
alert("hi");
|
||||
|
||||
if (!browserSupported) { alert("your browser is not supported"); return; }
|
||||
window.pandora = Ox.App({url: '/api/'}).bindEvent({
|
||||
'load': function(data) {
|
||||
|
@ -24,6 +24,7 @@
|
|||
pandora.resizeWindow();
|
||||
})
|
||||
},
|
||||
storage: Ox.localStorage("speedtrans"),
|
||||
ui: {},
|
||||
site: {},
|
||||
user: {}
|
||||
|
|
Loading…
Reference in New Issue
Block a user