1. Sebastian Sdorra
  2. scm-manager

Commits

Sebastian Sdorra  committed 5fda621

call ui repository open listener, no matter which permission the user has

  • Participants
  • Parent commits 9c7f85b
  • Branches default

Comments (0)

Files changed (1)

File scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.grid.js

View file
  • Ignore whitespace
         }
       });
       
-      // call open listeners
-      Ext.each(Sonia.repository.openListeners, function(listener){
-        if (Ext.isFunction(listener)){
-          listener(item, panels);
-        } else {
-          listener.call(listener.scope, item, panels);
-        }
-      });
-      
     } else {
       Ext.getCmp('repoRmButton').setDisabled(true);
     }
+    
+    // call open listeners
+    Ext.each(Sonia.repository.openListeners, function(listener){
+      if (Ext.isFunction(listener)){
+        listener(item, panels);
+      } else {
+        listener.call(listener.scope, item, panels);
+      }
+    });
 
     Sonia.repository.setEditPanel(panels);
   },