bundles/org.eclipse.orion.client.ui/web/gcli/gcli/ui/fields/basic.js
function BooleanField(type, options) {
  Field.call(this, type, options);

  this.name = options.name;
  this.named = options.named;

  this.element = util.createElement(this.document, 'input');
  this.element.type = 'checkbox';
  this.element.id = 'gcliForm' + this.name;

  this.onInputChange = this.onInputChange.bind(this);
  this.element.addEventListener('change', this.onInputChange, false);

  this.onFieldChange = util.createEvent('BooleanField.onFieldChange');
}
function BooleanField(type, options) {
  Field.call(this, type, options);

  this.name = options.name;
  this.named = options.named;

  this.element = util.createElement(this.document, 'input');
  this.element.type = 'checkbox';
  this.element.id = 'gcliForm' + this.name;

  this.onInputChange = this.onInputChange.bind(this);
  this.element.addEventListener('change', this.onInputChange, false);

  this.onFieldChange = util.createEvent('BooleanField.onFieldChange');
}
function BooleanField ( type , options ) { Field . call ( this , type , options ) ; this . name = options . name ; this . named = options . named ; this . element = util . createElement ( this . document , 'input' ) ; this . element . type = 'checkbox' ; this . element . id = 'gcliForm' + this . name ; this . onInputChange = this . onInputChange . bind ( this ) ; this . element . addEventListener ( 'change' , this . onInputChange , false ) ; this . onFieldChange = util . createEvent ( 'BooleanField.onFieldChange' ) ; }
A field that uses a checkbox to toggle a boolean field
A field that uses a checkbox to toggle a boolean field