diff --git a/static/js/editDialog.js b/static/js/editDialog.js index 8e646d971..0c35a67a6 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 97b329ff0..1207c6da2 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({