From dbe02ce73dce00531ffb34077fcbfe130a525335 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Mon, 10 Mar 2014 16:55:52 +0100 Subject: [PATCH] feature #2746: After deleting an element move to the list view --- src/sunstone/public/js/sunstone.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sunstone/public/js/sunstone.js b/src/sunstone/public/js/sunstone.js index b97086c7a2..14f5542487 100644 --- a/src/sunstone/public/js/sunstone.js +++ b/src/sunstone/public/js/sunstone.js @@ -1085,6 +1085,11 @@ function deleteElement(dataTable,tag){ var tr = $(tag,dataTable).parents('tr')[0]; dataTable.fnDeleteRow(tr); recountCheckboxes(dataTable); + + var tab = dataTable.parents(".tab"); + if (Sunstone.rightInfoVisible(tab)) { + $("a[href='back']", tab).click(); + } } //Handle the activation of action buttons and the check_all box