attach handler for class-based helpers
This commit is contained in:
parent
51b27b83b7
commit
5b34016bd2
1 changed files with 3 additions and 0 deletions
|
|
@ -329,6 +329,9 @@ WebGUI.Admin.prototype.addHelperHandler
|
|||
if ( helper.url ) {
|
||||
YAHOO.util.Event.on( elem, "click", function(){ self.gotoAsset( helper.url ) }, self, true );
|
||||
}
|
||||
else if ( helper.class ) {
|
||||
YAHOO.util.Event.on( elem, "click", function(){ self.requestHelper( helper.class, self.currentAssetDef.assetId ) }, self, true );
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue