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