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