documentDialog/UI: set object with position property

This commit is contained in:
rolux 2015-02-05 07:29:08 +00:00
parent 5eced4f160
commit bd423a0829

View file

@ -170,8 +170,8 @@ pandora.ui.documentDialog = function(options) {
.bindEvent({
center: function(data) {
pandora.UI.set(
'documents.' + item.id + '.position',
$content.getArea()
'documents.' + item.id,
{position: $content.getArea()}
);
},
key_escape: function() {
@ -179,14 +179,14 @@ pandora.ui.documentDialog = function(options) {
},
page: function(data) {
pandora.UI.set(
'documents.' + item.id + '.position',
data.page
'documents.' + item.id,
{position: $content.getArea()}
);
},
zoom: function(data) {
pandora.UI.set(
'documents.' + item.id + '.position',
$content.getArea()
'documents.' + item.id,
{position: $content.getArea()}
);
}
})