apps/system/js/quick_settings.js
/**
     * Auto-config wifi if user enabled wifi from quick settings bar.
     * If there are no known networks around, wifi settings page
     * will be opened. Otherwise nothing will be done.
     * @memberof QuickSettings.prototype
     */
Auto-config wifi if user enabled wifi from quick settings bar.
If there are no known networks around, wifi settings page
will be opened. Otherwise nothing will be done.
Auto - config wifi if user enabled wifi from quick settings bar . If there are no known networks around wifi settings page will be opened . Otherwise nothing will be done .
function qs_autoConfigWifi() {
      clearTimeout(this.wifiStatusTimer);
      this.wifiStatusTimer = null;
      this.toggleAutoConfigWifi = false;
      var wifiManager = window.navigator.mozWifiManager;
      var status = wifiManager.connection.status;
      if (status == 'disconnected') {
        SettingsListener.getSettingsLock().set({
          'wifi.connect_via_settings': false
        });
        var activity = new MozActivity({
          name: 'configure',
          data: {
            target: 'device',
            section: 'wifi'
          }
        });
        return activity;
      } else if (status == 'connectingfailed') {
        SettingsListener.getSettingsLock().set({
          'wifi.connect_via_settings': false
        });
      }
    }
function qs_autoConfigWifi ( ) { clearTimeout ( this . wifiStatusTimer ) ; this . wifiStatusTimer = null ; this . toggleAutoConfigWifi = false ; var wifiManager = window . navigator . mozWifiManager ; var status = wifiManager . connection . status ; if ( status == 'disconnected' ) { SettingsListener . getSettingsLock ( ) . set ( { 'wifi.connect_via_settings' : false } ) ; var activity = new MozActivity ( { name : 'configure' , data : { target : 'device' , section : 'wifi' } } ) ; return activity ; } else if ( status == 'connectingfailed' ) { SettingsListener . getSettingsLock ( ) . set ( { 'wifi.connect_via_settings' : false } ) ; } }
Auto-config wifi if user enabled wifi from quick settings bar.
Auto - config wifi if user enabled wifi from quick settings bar .