documentDialog/UI: set object with position property
This commit is contained in:
parent
5eced4f160
commit
bd423a0829
1 changed files with 6 additions and 6 deletions
|
@ -170,8 +170,8 @@ pandora.ui.documentDialog = function(options) {
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
center: function(data) {
|
center: function(data) {
|
||||||
pandora.UI.set(
|
pandora.UI.set(
|
||||||
'documents.' + item.id + '.position',
|
'documents.' + item.id,
|
||||||
$content.getArea()
|
{position: $content.getArea()}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
key_escape: function() {
|
key_escape: function() {
|
||||||
|
@ -179,14 +179,14 @@ pandora.ui.documentDialog = function(options) {
|
||||||
},
|
},
|
||||||
page: function(data) {
|
page: function(data) {
|
||||||
pandora.UI.set(
|
pandora.UI.set(
|
||||||
'documents.' + item.id + '.position',
|
'documents.' + item.id,
|
||||||
data.page
|
{position: $content.getArea()}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
zoom: function(data) {
|
zoom: function(data) {
|
||||||
pandora.UI.set(
|
pandora.UI.set(
|
||||||
'documents.' + item.id + '.position',
|
'documents.' + item.id,
|
||||||
$content.getArea()
|
{position: $content.getArea()}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue