B2G/gaia/apps/system/js/modal_dialog.js
// When user selects an option on selectone dialog
When user selects an option on selectone dialog
When user selects an option on selectone dialog
function md_confirmHandler(target) {
    this.screen.classList.remove('modal-dialog');
    var elements = this.elements;
    var evt = this.eventForCurrentOrigin;
    evt.detail.returnValue = target.id;
    elements.selectOne.classList.remove('visible');
    if (evt.isPseudo && evt.callback) {
      evt.callback(evt.detail.returnValue);
    }
    if (evt.detail.unblock)
      evt.detail.unblock();
    this.processNextEvent();
  }
function md_confirmHandler ( target ) { this . screen . classList . remove ( 'modal-dialog' ) ; var elements = this . elements ; var evt = this . eventForCurrentOrigin ; evt . detail . returnValue = target . id ; elements . selectOne . classList . remove ( 'visible' ) ; if ( evt . isPseudo && evt . callback ) { evt . callback ( evt . detail . returnValue ) ; } if ( evt . detail . unblock ) evt . detail . unblock ( ) ; this . processNextEvent ( ) ; }
When user selects an option on selectone dialog
When user selects an option on selectone dialog