@@ -10,7 +10,7 @@ NOTES:
|
||||
* Compression/Combination/Minification is not enabled unless debug="false" is specified on the 'compiliation' element in the web.config
|
||||
* A new version will invalidate both client and server cache and create new persisted files
|
||||
-->
|
||||
<clientDependency version="26">
|
||||
<clientDependency version="27">
|
||||
|
||||
<fileRegistration defaultProvider="PageHeaderProvider" fileDependencyExtensions=".js,.css">
|
||||
<providers>
|
||||
|
||||
@@ -239,7 +239,18 @@ namespace umbraco.cms.presentation.Trees
|
||||
internal set { m_treeType = value; }
|
||||
}
|
||||
|
||||
public bool HasChildren { get; set; }
|
||||
public bool HasChildren
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_HasChildren ?? !string.IsNullOrEmpty(this.Source); //defaults to true if source is specified
|
||||
}
|
||||
set
|
||||
{
|
||||
m_HasChildren = value;
|
||||
}
|
||||
}
|
||||
private bool? m_HasChildren = null;
|
||||
|
||||
public string NodeID
|
||||
{
|
||||
|
||||
@@ -71,6 +71,7 @@ Umbraco.Sys.registerNamespace("Umbraco.Controls");
|
||||
_loadedApps: [], //stores the application names that have been loaded to track which JavaScript code has been inserted into the DOM
|
||||
_treeClass: "umbTree", //used for other libraries to detect which elements are an umbraco tree
|
||||
_currenAJAXRequest: false, //used to determine if there is currently an ajax request being executed.
|
||||
_isSyncing: false,
|
||||
|
||||
addEventHandler: function(fnName, fn) {
|
||||
/// <summary>Adds an event listener to the event name event</summary>
|
||||
@@ -307,6 +308,9 @@ Umbraco.Sys.registerNamespace("Umbraco.Controls");
|
||||
|
||||
this._debug("syncTree: " + path + ", " + forceReload);
|
||||
|
||||
//set the flag so that multiple synces aren't attempted
|
||||
this._isSyncing = true;
|
||||
|
||||
this._syncTree.call(this, path, forceReload, null, null);
|
||||
|
||||
},
|
||||
@@ -827,6 +831,7 @@ Umbraco.Sys.registerNamespace("Umbraco.Controls");
|
||||
//if no node has been found at all in the entire path, then bubble an error event
|
||||
if (!found) {
|
||||
this._debug("no node found in path: " + path + " : " + numPaths);
|
||||
this._isSyncing = false; //reset flag
|
||||
this._raiseEvent("syncNotFound", [path]);
|
||||
return;
|
||||
}
|
||||
@@ -842,6 +847,7 @@ Umbraco.Sys.registerNamespace("Umbraco.Controls");
|
||||
}
|
||||
else {
|
||||
_this._debug("node not found in children: " + path + " : " + numPaths);
|
||||
this._isSyncing = false; //reset flag
|
||||
_this._raiseEvent("syncNotFound", [path]);
|
||||
}
|
||||
});
|
||||
@@ -849,7 +855,7 @@ Umbraco.Sys.registerNamespace("Umbraco.Controls");
|
||||
else {
|
||||
//only force the reload of this nodes data if forceReload is specified and the node has not already come from the server
|
||||
var doReload = (forceReload && (numAsync == null || numAsync < 1));
|
||||
this._debug("_syncTree: found! numAsync: " + numAsync + ", forceReload: " + forceReload + ", doReload: " + doReload);
|
||||
this._debug("_syncTree: found! numAsync: " + numAsync + ", forceReload: " + forceReload + ", doReload: " + doReload);
|
||||
if (doReload) {
|
||||
this._actionNode = this.getNodeDef(found);
|
||||
this.reloadActionNode(false, true, null);
|
||||
@@ -859,6 +865,7 @@ Umbraco.Sys.registerNamespace("Umbraco.Controls");
|
||||
if (found.attr("id") != "-1") this.selectNode(found, true);
|
||||
this._configureNodes(found, doReload);
|
||||
}
|
||||
this._isSyncing = false; //reset flag
|
||||
//bubble event
|
||||
this._raiseEvent("syncFound", [found]);
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
<add verb="GET,HEAD,POST" path="GoogleSpellChecker.ashx" type="umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker,umbraco" />
|
||||
</httpHandlers>
|
||||
|
||||
<compilation defaultLanguage="c#" debug="true" batch="false">
|
||||
<compilation defaultLanguage="c#" debug="false" batch="false">
|
||||
<assemblies>
|
||||
<!-- ASPNETAJAX -->
|
||||
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
@@ -190,17 +190,20 @@
|
||||
<remove name="ScriptHandlerFactory" />
|
||||
<remove name="ScriptHandlerFactoryAppServices" />
|
||||
<remove name="ScriptResource" />
|
||||
<remove name="ClientDependency" />
|
||||
<remove name="SpellChecker" />
|
||||
|
||||
<!-- ASPNETAJAX -->
|
||||
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<!-- UMBRACO CHANNELS -->
|
||||
<add verb="*" name="Channels" path="umbraco/channels.aspx" type="umbraco.presentation.channels.api, umbraco" />
|
||||
<add verb="*" name="Channels_Word" path="umbraco/channels/word.aspx" type="umbraco.presentation.channels.wordApi, umbraco" />
|
||||
<add verb="*" name="Channels" preCondition="integratedMode" path="umbraco/channels.aspx" type="umbraco.presentation.channels.api, umbraco" />
|
||||
<add verb="*" name="Channels_Word" preCondition="integratedMode" path="umbraco/channels/word.aspx" type="umbraco.presentation.channels.wordApi, umbraco" />
|
||||
<!-- CLIENT DEPENDENCY -->
|
||||
<add verb="*" name="ClientDependency" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core "/>
|
||||
<add verb="*" name="ClientDependency" preCondition="integratedMode" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core "/>
|
||||
<!-- SPELL CHECKER -->
|
||||
<add verb="GET,HEAD,POST" name="SpellChecker" path="GoogleSpellChecker.ashx" type="umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker,umbraco"/>
|
||||
<add verb="GET,HEAD,POST" name="SpellChecker" preCondition="integratedMode" path="GoogleSpellChecker.ashx" type="umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker,umbraco"/>
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user