add confirm dialog for helpers
This commit is contained in:
parent
db9753eb01
commit
a7f60c7d45
1 changed files with 8 additions and 0 deletions
|
|
@ -581,11 +581,19 @@ WebGUI.Admin.prototype.getHelperHandler
|
|||
= function ( assetId, helperId, helper ) {
|
||||
if ( helper.url ) {
|
||||
return bind( this, function(){
|
||||
// a confirmation dialog
|
||||
if ( helper.confirm && !confirm( helper.confirm ) ) {
|
||||
return;
|
||||
}
|
||||
this.gotoAsset( helper.url )
|
||||
} );
|
||||
}
|
||||
|
||||
return bind( this, function(){
|
||||
// a confirmation dialog
|
||||
if ( helper.confirm && !confirm( helper.confirm ) ) {
|
||||
return;
|
||||
}
|
||||
this.requestHelper( helperId, assetId )
|
||||
} );
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue