bundles/org.eclipse.orion.client.ui/web/orion/sites/SiteEditor.js
function(refreshUI) {
		refreshUI = typeof refreshUI === "undefined" ? true : refreshUI; //$NON-NLS-0$
		var siteConfig = this._siteConfiguration;
		// Omit the HostingStatus field from the object we send since it's likely to be updated from the
		// sites page, and we don't want to overwrite
		var status = siteConfig.HostingStatus;
		delete siteConfig.HostingStatus;
		var self = this;
		var deferred = this._siteClient.updateSiteConfiguration(siteConfig.Location, siteConfig).then(
			function(updatedSiteConfig) {
				self.setDirty(false);
				if (refreshUI) {
					self._setSiteConfiguration(updatedSiteConfig);
					return updatedSiteConfig;
				} else {
					siteConfig.HostingStatus = status;
					self._refreshCommands();
					return siteConfig;
				}
			});
		this._busyWhile(deferred);
		return true;
	}
function(refreshUI) {
		refreshUI = typeof refreshUI === "undefined" ? true : refreshUI; //$NON-NLS-0$
		var siteConfig = this._siteConfiguration;
		// Omit the HostingStatus field from the object we send since it's likely to be updated from the
		// sites page, and we don't want to overwrite
		var status = siteConfig.HostingStatus;
		delete siteConfig.HostingStatus;
		var self = this;
		var deferred = this._siteClient.updateSiteConfiguration(siteConfig.Location, siteConfig).then(
			function(updatedSiteConfig) {
				self.setDirty(false);
				if (refreshUI) {
					self._setSiteConfiguration(updatedSiteConfig);
					return updatedSiteConfig;
				} else {
					siteConfig.HostingStatus = status;
					self._refreshCommands();
					return siteConfig;
				}
			});
		this._busyWhile(deferred);
		return true;
	}
function ( refreshUI ) { refreshUI = typeof refreshUI === "undefined" ? true : refreshUI ; //$NON-NLS-0$ var siteConfig = this . _siteConfiguration ; // Omit the HostingStatus field from the object we send since it's likely to be updated from the // sites page, and we don't want to overwrite var status = siteConfig . HostingStatus ; delete siteConfig . HostingStatus ; var self = this ; var deferred = this . _siteClient . updateSiteConfiguration ( siteConfig . Location , siteConfig ) . then ( function ( updatedSiteConfig ) { self . setDirty ( false ) ; if ( refreshUI ) { self . _setSiteConfiguration ( updatedSiteConfig ) ; return updatedSiteConfig ; } else { siteConfig . HostingStatus = status ; self . _refreshCommands ( ) ; return siteConfig ; } } ) ; this . _busyWhile ( deferred ) ; return true ; }
Callback when 'save' is clicked.
@Override
@returns True to allow save to proceed, false to prevent it.
Callback when save is clicked .