src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js
function () {
				var BusyDialog,
					sDensityMode = this._oCore.byId('DensityModeSwitch').getSelectedKey(),
					sTheme = this._oCore.byId('ThemeSelect').getSelectedKey(),
					bRTL = this._oCore.byId('RTLSwitch').getState();

				this._oSettingsDialog.close();

				// Lazy loading of busy dialog
				if (!this._oBusyDialog) {
					//TODO: global jquery call found
					jQuery.sap.require("sap.m.BusyDialog");
					BusyDialog = sap.ui.require("sap/m/BusyDialog");
					this._oBusyDialog = new BusyDialog();
					this.getView().addDependent(this._oBusyDialog);
				}

				// Handle busy dialog
				this._oBusyDialog.open();
				setTimeout(function () {
					this._oBusyDialog.close();
				}.bind(this), 1000);

				// handle settings change
				this._applyAppConfiguration(sTheme, sDensityMode, bRTL);

				// If we are navigating outside the Explored App section: view settings should be reset
				this.getRouter().attachBeforeRouteMatched(this._viewSettingsResetOnNavigation, this);
			}
function () {
				var BusyDialog,
					sDensityMode = this._oCore.byId('DensityModeSwitch').getSelectedKey(),
					sTheme = this._oCore.byId('ThemeSelect').getSelectedKey(),
					bRTL = this._oCore.byId('RTLSwitch').getState();

				this._oSettingsDialog.close();

				// Lazy loading of busy dialog
				if (!this._oBusyDialog) {
					//TODO: global jquery call found
					jQuery.sap.require("sap.m.BusyDialog");
					BusyDialog = sap.ui.require("sap/m/BusyDialog");
					this._oBusyDialog = new BusyDialog();
					this.getView().addDependent(this._oBusyDialog);
				}

				// Handle busy dialog
				this._oBusyDialog.open();
				setTimeout(function () {
					this._oBusyDialog.close();
				}.bind(this), 1000);

				// handle settings change
				this._applyAppConfiguration(sTheme, sDensityMode, bRTL);

				// If we are navigating outside the Explored App section: view settings should be reset
				this.getRouter().attachBeforeRouteMatched(this._viewSettingsResetOnNavigation, this);
			}
function ( ) { var BusyDialog , sDensityMode = this . _oCore . byId ( 'DensityModeSwitch' ) . getSelectedKey ( ) , sTheme = this . _oCore . byId ( 'ThemeSelect' ) . getSelectedKey ( ) , bRTL = this . _oCore . byId ( 'RTLSwitch' ) . getState ( ) ; this . _oSettingsDialog . close ( ) ; // Lazy loading of busy dialog if ( ! this . _oBusyDialog ) { //TODO: global jquery call found jQuery . sap . require ( "sap.m.BusyDialog" ) ; BusyDialog = sap . ui . require ( "sap/m/BusyDialog" ) ; this . _oBusyDialog = new BusyDialog ( ) ; this . getView ( ) . addDependent ( this . _oBusyDialog ) ; } // Handle busy dialog this . _oBusyDialog . open ( ) ; setTimeout ( function ( ) { this . _oBusyDialog . close ( ) ; } . bind ( this ) , 1000 ) ; // handle settings change this . _applyAppConfiguration ( sTheme , sDensityMode , bRTL ) ; // If we are navigating outside the Explored App section: view settings should be reset this . getRouter ( ) . attachBeforeRouteMatched ( this . _viewSettingsResetOnNavigation , this ) ; }
Saves settings from the view settings dialog
@public
Saves settings from the view settings dialog