forked from 0x2620/oxjs
add Ox.localStorage
This commit is contained in:
parent
11cb7b1dc8
commit
45243cb5ff
5 changed files with 48 additions and 20 deletions
|
|
@ -18,6 +18,7 @@ Ox.App = function(options) {
|
|||
|
||||
var self = {
|
||||
options: Ox.extend({
|
||||
name: 'App',
|
||||
timeout: 60000,
|
||||
type: 'POST',
|
||||
url: '/api/'
|
||||
|
|
@ -39,6 +40,8 @@ Ox.App = function(options) {
|
|||
});
|
||||
});
|
||||
|
||||
that.localStorage = Ox.localStorage(self.options.name);
|
||||
|
||||
function getUserData() {
|
||||
return {
|
||||
document: {
|
||||
|
|
|
|||
|
|
@ -119,9 +119,7 @@ Ox.Theme = (function() {
|
|||
});
|
||||
});
|
||||
}
|
||||
if (localStorage) {
|
||||
localStorage.OxTheme = theme;
|
||||
}
|
||||
localStorage['Ox.theme'] = theme;
|
||||
return that;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -869,7 +869,7 @@ Ox.Input = function(options, self) {
|
|||
that.clearInput = function() {
|
||||
clear();
|
||||
return that;
|
||||
}
|
||||
};
|
||||
|
||||
/*@
|
||||
focusInput <f> Focus input element
|
||||
|
|
@ -1654,6 +1654,7 @@ Ox.InputElement_ = function(options, self) {
|
|||
self.options.autosuggestSubmit && submit();
|
||||
}
|
||||
|
||||
// FIXME: make this public!
|
||||
function cursor(start, end) {
|
||||
/*
|
||||
cursor() returns [start, end]
|
||||
|
|
|
|||
|
|
@ -39,8 +39,6 @@ Ox.Spreadsheet = function(options, self) {
|
|||
});
|
||||
}
|
||||
|
||||
Ox.print('Ss ----', self.options)
|
||||
|
||||
renderSpreadsheet();
|
||||
|
||||
function addColumn(index) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue