mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
added Sonia.repository.openListeners
This commit is contained in:
@@ -137,6 +137,12 @@ Sonia.repository.Grid = Ext.extend(Sonia.rest.Grid, {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// call open listeners
|
||||||
|
Ext.each(Sonia.repository.openListeners, function(listener){
|
||||||
|
listener.onOpen(item, panels);
|
||||||
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Ext.getCmp('repoRmButton').setDisabled(true);
|
Ext.getCmp('repoRmButton').setDisabled(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ loginCallbacks.push( loadRepositoryTypes );
|
|||||||
// register namespace
|
// register namespace
|
||||||
Ext.ns('Sonia.repository');
|
Ext.ns('Sonia.repository');
|
||||||
|
|
||||||
|
Sonia.repository.openListeners = [];
|
||||||
|
|
||||||
// functions
|
// functions
|
||||||
|
|
||||||
Sonia.repository.isOwner = function(repository){
|
Sonia.repository.isOwner = function(repository){
|
||||||
|
|||||||
Reference in New Issue
Block a user