From e079481e51233248c3cf47264e040f700f4e10fd Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Wed, 25 May 2016 10:28:46 +0200 Subject: [PATCH] #828 focus same repository as was selected previously --- .../js/repository/sonia.repository.grid.js | 28 ++++++++++++++++++- .../js/repository/sonia.repository.js | 9 ++++-- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.grid.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.grid.js index 4362ea721b..19f8fc311d 100644 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.grid.js +++ b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.grid.js @@ -482,8 +482,34 @@ Sonia.repository.Grid = Ext.extend(Sonia.rest.Grid, { listener.call(listener.scope, item, panels); } }); + + // get the xtype of the currently opened tab + // search for the tab with the same xtype and activate it + // see issue https://goo.gl/3RGnA3 + var activeTab = 0; + var activeXtype = this.getActiveTabXtype(); + if (activeXtype){ + for (var i=0; i