bundles/org.eclipse.orion.client.ui/web/orion/sites/SiteEditor.js
function(items, userData) {

		var selfHostingConfig = this._siteClient.getSelfHostingConfig();

		var self = this;
		var dialog = new ConvertToSelfHostingDialog({
			serviceRegistry: this.serviceRegistry,
			fileClient: this.fileClient,
			siteClient: this._siteClient,
			selfHostingConfig: selfHostingConfig,
			func: function(folderInfos) {
				var folderLocations = folderInfos.map(function(folderInfo) {
					return folderInfo.folder.Location;
				});
				self._siteClient.convertToSelfHosting(self.getSiteConfiguration(), folderLocations).then(
					function(updatedSite) {
						self.mappings.deleteAllMappings();
						self.mappings.addMappings(updatedSite.Mappings);
						self.save();
					});
			}
		});
		dialog.show();
	}
function(items, userData) {

		var selfHostingConfig = this._siteClient.getSelfHostingConfig();

		var self = this;
		var dialog = new ConvertToSelfHostingDialog({
			serviceRegistry: this.serviceRegistry,
			fileClient: this.fileClient,
			siteClient: this._siteClient,
			selfHostingConfig: selfHostingConfig,
			func: function(folderInfos) {
				var folderLocations = folderInfos.map(function(folderInfo) {
					return folderInfo.folder.Location;
				});
				self._siteClient.convertToSelfHosting(self.getSiteConfiguration(), folderLocations).then(
					function(updatedSite) {
						self.mappings.deleteAllMappings();
						self.mappings.addMappings(updatedSite.Mappings);
						self.save();
					});
			}
		});
		dialog.show();
	}
function ( items , userData ) { var selfHostingConfig = this . _siteClient . getSelfHostingConfig ( ) ; var self = this ; var dialog = new ConvertToSelfHostingDialog ( { serviceRegistry : this . serviceRegistry , fileClient : this . fileClient , siteClient : this . _siteClient , selfHostingConfig : selfHostingConfig , func : function ( folderInfos ) { var folderLocations = folderInfos . map ( function ( folderInfo ) { return folderInfo . folder . Location ; } ) ; self . _siteClient . convertToSelfHosting ( self . getSiteConfiguration ( ) , folderLocations ) . then ( function ( updatedSite ) { self . mappings . deleteAllMappings ( ) ; self . mappings . addMappings ( updatedSite . Mappings ) ; self . save ( ) ; } ) ; } } ) ; dialog . show ( ) ; }
Special feature for setting up self-hosting
Special feature for setting up self - hosting