mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-12 01:26:55 +01:00
improve Sonia.repository.openListeners
This commit is contained in:
@@ -486,6 +486,21 @@
|
||||
</dependencies>
|
||||
|
||||
</profile>
|
||||
|
||||
<profile>
|
||||
<id>jira</id>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>sonia.scm.plugins</groupId>
|
||||
<artifactId>scm-jira-plugin</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</profile>
|
||||
|
||||
<profile>
|
||||
<id>it</id>
|
||||
|
||||
@@ -140,7 +140,11 @@ Sonia.repository.Grid = Ext.extend(Sonia.rest.Grid, {
|
||||
|
||||
// call open listeners
|
||||
Ext.each(Sonia.repository.openListeners, function(listener){
|
||||
listener.onOpen(item, panels);
|
||||
if (Ext.isFunction(listener)){
|
||||
listener(item, panels);
|
||||
} else {
|
||||
listener.call(listener.scope, item, panels);
|
||||
}
|
||||
});
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user