From bd423a08290b16fc544b8cdf0885c72b424a24e2 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 5 Feb 2015 07:29:08 +0000 Subject: [PATCH] documentDialog/UI: set object with position property --- static/js/documentDialog.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/static/js/documentDialog.js b/static/js/documentDialog.js index 43e66e3c9..e945fa229 100644 --- a/static/js/documentDialog.js +++ b/static/js/documentDialog.js @@ -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()} ); } })