diff --git a/static/js/editDialog.js b/static/js/editDialog.js index 8e646d97..0c35a67a 100644 --- a/static/js/editDialog.js +++ b/static/js/editDialog.js @@ -31,9 +31,6 @@ pandora.ui.editDialog = function() { }) .bindEvent({ click: function() { - if (!ui.updateResults && hasChanged) { - pandora.$ui.list.reloadList() - } that.close(); } }) @@ -48,6 +45,12 @@ pandora.ui.editDialog = function() { ) ]), width: 768 + }).bindEvent({ + close: function() { + if (!ui.updateResults && hasChanged) { + pandora.$ui.list.reloadList() + } + } }), $updateCheckbox = Ox.Checkbox({ diff --git a/static/js/editDocumentsDialog.js b/static/js/editDocumentsDialog.js index 97b329ff..1207c6da 100644 --- a/static/js/editDocumentsDialog.js +++ b/static/js/editDocumentsDialog.js @@ -30,9 +30,6 @@ pandora.ui.editDocumentsDialog = function() { }) .bindEvent({ click: function() { - if (!ui.updateResults && hasChanged) { - pandora.$ui.list.reloadList() - } that.close(); } }) @@ -47,6 +44,12 @@ pandora.ui.editDocumentsDialog = function() { ) ]), width: 768 + }).bindEvent({ + close: function() { + if (!ui.updateResults && hasChanged) { + pandora.$ui.list.reloadList() + } + } }), $updateCheckbox = Ox.Checkbox({