Sha256: a923b2efd135951e0ca2fc45821ec5bae4f311219591935c0029576cc3350b78

Contents?: true

Size: 814 Bytes

Versions: 27

Compression:

Stored size: 814 Bytes

Contents

/*** = Description
  ** Simple confirm sheet control. Acts like HAlertSheet but has a cancel 
  ** button as well.
  ***/

var//RSence.Controls
HConfirmSheet = HAlertSheet.extend({
/** = Description
  * Creates a cancel button.
  *
  **/
  alertButtons: function(){
    this.cancelButton = HClickButton.extend({
      click: function(){
        this.setValue( -1 );
      }
    }).nu(
      [ null, null, 60, 23, 76, 8 ],
      this, {
        label: 'Cancel',
        valueObj: this.valueObj,
        events: {
          click: true
        }
      }
    );
    this.base();
  },
  
/** = Description
  * Binds the same value to cancelButton.
  *
  **/  
  setValueObj: function( valueObj ){
    this.base( valueObj );
    if ( this['cancelButton'] ) {
      valueObj.bind( this.cancelButton ); 
    }
  }  
});

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
rsence-pre-3.0.0.16 client/js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-3.0.0.15 client/js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-3.0.0.14 client/js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-3.0.0.12 client/js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-3.0.0.11 client/js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-3.0.0.10 client/js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-3.0.0.9 client/js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-3.0.0.8 client/js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-3.0.0.7 client/js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-3.0.0.6 client/js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-3.0.0.5 client/js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-3.0.0.4 client/js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-3.0.0.3 client/js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-3.0.0.2 client/js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-3.0.0.1 client/js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-3.0.0.0 client/js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-2.3.0.26 js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-2.3.0.25 js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-2.3.0.24 js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-pre-2.3.0.23 js/controls/dialogs/confirm_sheet/confirm_sheet.js