forked from 0x2620/pandora
set/get per document settings
This commit is contained in:
parent
f522ba52f6
commit
fdbd17fdc1
1 changed files with 4 additions and 4 deletions
|
@ -14,7 +14,7 @@ pandora.ui.documentDialog = function(options) {
|
|||
} : {
|
||||
center: 'auto',
|
||||
zoom: 'fit'
|
||||
}, pandora.user.ui.document[item.id] || {}),
|
||||
}, pandora.user.ui.documents[item.id] || {}),
|
||||
|
||||
$content = Ox.Element(),
|
||||
|
||||
|
@ -116,7 +116,7 @@ pandora.ui.documentDialog = function(options) {
|
|||
)
|
||||
.bindEvent({
|
||||
center: function(data) {
|
||||
pandora.UI.set('document.' + item.id, Ox.extend(settings, {
|
||||
pandora.UI.set('documents.' + item.id, Ox.extend(settings, {
|
||||
center: data.center
|
||||
}));
|
||||
},
|
||||
|
@ -124,12 +124,12 @@ pandora.ui.documentDialog = function(options) {
|
|||
pandora.$ui.documentDialog.close();
|
||||
},
|
||||
page: function(data) {
|
||||
pandora.UI.set('document.' + item.id, Ox.extend(settings, {
|
||||
pandora.UI.set('documents.' + item.id, Ox.extend(settings, {
|
||||
page: data.page
|
||||
}));
|
||||
},
|
||||
zoom: function(data) {
|
||||
pandora.UI.set('document.' + item.id, Ox.extend(settings, {
|
||||
pandora.UI.set('documents.' + item.id, Ox.extend(settings, {
|
||||
zoom: data.zoom
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue