B2G/gaia/apps/system/js/simcard_dialog.js
/**
   * Show the SIM pin dialog
   * @param {String}   action  Name of the action to execute,
   *                           either: unlock, enable or changePin.
   * @param {Function} title   Optional function called when dialog is closed.
   *                           Receive a single argument being the reason of
   *                           dialog closing: success, skip, home or holdhome.
   */
Show the SIM pin dialog
@param {String}   action  Name of the action to execute,
either: unlock, enable or changePin.
@param {Function} title   Optional function called when dialog is closed.
Receive a single argument being the reason of
dialog closing: success, skip, home or holdhome.
Show the SIM pin dialog @param { String } action Name of the action to execute either : unlock enable or changePin . @param { Function } title Optional function called when dialog is closed . Receive a single argument being the reason of dialog closing : success skip home or holdhome .
function spl_show(action, onclose) {
    var _ = navigator.mozL10n.get;
    UtilityTray.hide(true);
    this.systemDialog.show();
    this.action = action;
    this.lockType = 'pin';
    switch (action) {
      case 'unlock':
        this.handleCardState();
        break;
      case 'enable':
        this.inputFieldControl(true, false, false, false);
        this.dialogTitle.textContent = _('pinTitle') || '';
        break;
      case 'changePin':
        this.inputFieldControl(true, false, false, true);
        this.dialogTitle.textContent = _('newpinTitle') || '';
        break;
    }
    if (onclose && typeof onclose === 'function')
      this.onclose = onclose;
  }
function spl_show ( action , onclose ) { var _ = navigator . mozL10n . get ; UtilityTray . hide ( true ) ; this . systemDialog . show ( ) ; this . action = action ; this . lockType = 'pin' ; switch ( action ) { case 'unlock' : this . handleCardState ( ) ; break ; case 'enable' : this . inputFieldControl ( true , false , false , false ) ; this . dialogTitle . textContent = _ ( 'pinTitle' ) || '' ; break ; case 'changePin' : this . inputFieldControl ( true , false , false , true ) ; this . dialogTitle . textContent = _ ( 'newpinTitle' ) || '' ; break ; } if ( onclose && typeof onclose === 'function' ) this . onclose = onclose ; }
Show the SIM pin dialog
 @param {String}   action  Name of the action to execute,
                           either: unlock, enable or changePin.
Show the SIM pin dialog @param { String } action Name of the action to execute either : unlock enable or changePin .
// Hide the utility tray to avoid overlapping the SIM Pin dialog