add confirm dialog for helpers

This commit is contained in:
Doug Bell 2011-04-20 18:29:33 -05:00
parent db9753eb01
commit a7f60c7d45

View file

@ -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 )
} );
};