﻿/*global require, document */
/*jslint sloppy:true */
/** @license
| Version 10.2
| Copyright 2013 Esri
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
| You may obtain a copy of the License at
|
|    http://www.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law or agreed to in writing, software
| distributed under the License is distributed on an "AS IS" BASIS,
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
| See the License for the specific language governing permissions and
| limitations under the License.
*/
//============================================================================================================================//

require([
	"coreLibrary/widgetLoader",
	"application/config",
	"esri/config",
	"dojo/domReady!"
], function (widgetLoader, config, esriConfig, domReady) {

	//========================================================================================================================//

	try {

		/**
		* load application configuration settings from configuration file
		* create an object of widget loader class
		*/
		esriConfig.defaults.io.proxyUrl = "proxy.ashx";
		esriConfig.defaults.io.alwaysUseProxy = false;
		esriConfig.defaults.io.timeout = 600000;
		dojo.appConfigData = config;
		dojo.bookInfo = [];
		var applicationWidgetLoader = new widgetLoader();
		applicationWidgetLoader.startup();

	} catch (ex) {
		alert(ex.message);
	}
});
@@ -854,16 +854,38 @@
 onfig%22,%0A
+%09%22esri/arcgis/utils%22,%0A
 %09%22dojo/d
@@ -940,16 +940,29 @@
 iConfig,
+ arcgisUtils,
  domRead
@@ -1367,16 +1367,93 @@
 600000;%0A
+%09%09esri.arcgis.utils.arcgisUrl = config.PortalURL + '/sharing/content/items';%0A
 %09%09dojo.a
@@ -1630,8 +1630,9 @@
 ;%0A%09%7D%0A%7D);
+%0A

Set Portal URL in bootstrapper