From eb5100b8840d54f4f2687f22a8e06bb6815fcf0b Mon Sep 17 00:00:00 2001 From: Jayati Shrivastava Date: Fri, 20 Dec 2019 17:21:16 +0530 Subject: [PATCH] Prevents return to Browse page. Fixes #15662 Signed-off-by: Jayati Shrivastava --- js/indexes.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/js/indexes.js b/js/indexes.js index 6050f8a6f4..b9f3dfdbd8 100644 --- a/js/indexes.js +++ b/js/indexes.js @@ -667,10 +667,9 @@ AJAX.registerOnload('indexes.js', function () { .prependTo('#structure_content'); Functions.highlightSql($('#page_content')); } - CommonActions.refreshMain(false, function () { - $('a.ajax[href^=#indexes]').trigger('click'); - }); Navigation.reload(); + var tableStructureUrl = 'index.php?route=/table/structure' + CommonParams.getUrlQuery('&'); + CommonActions.refreshMain(tableStructureUrl); } else { Functions.ajaxShowMessage(Messages.strErrorProcessingRequest + ' : ' + data.error, false); } @@ -704,10 +703,8 @@ AJAX.registerOnload('indexes.js', function () { } url += CommonParams.get('arg_separator') + 'ajax_request=true'; Functions.indexEditorDialog(url, title, function () { - // refresh the page using ajax - CommonActions.refreshMain(false, function () { - $('a.ajax[href^=#indexes]').trigger('click'); - }); + var tableStructureUrl = 'index.php?route=/table/structure' + CommonParams.getUrlQuery('&'); + CommonActions.refreshMain(tableStructureUrl); }); });