Hi Neil,
We are talking about the same line of code. It works correctly like this:
script.Append(", script: '" + navigationRoot + "/Services/jqueryFileTreeMediaBrowser.ashx?type=" + browserType + "&dir=" + currentDir + "'");
as shown in this screen shot:
if I change the code like this:
script.Append(", script: '" + navigationRoot + "/Services/jqueryFileTreeMediaBrowser.ashx?type=" + browserType + "&dir=" + currentDir + "'");
it results in recursive duplicated folders as shown here:
notice how media folder contains itself and if you keep going deeper it keeps duplicating
if I change the code like this:
script.Append(", script: '" + navigationRoot + "/Services/jqueryFileTreeMediaBrowser.ashx?type=" + browserType);
I get no sub folders at all as shown here:
I am testing in VS 2010 on Win7 x64 using .NET 4.0 and IIS7 using CKeditor and the very latest mojoPortal code
If you say it works on Mono and you verify it does not cause those side effects, then I am willing to change the code like this:
#if MONO
script.Append(", script: '" + navigationRoot + "/Services/jqueryFileTreeMediaBrowser.ashx?type=" + browserType);
#else
script.Append(", script: '" + navigationRoot + "/Services/jqueryFileTreeMediaBrowser.ashx?type=" + browserType + "&dir=" + currentDir + "'");
#endif
so it can be compiled differently for Mono
But I am very surprised if it works correctly without passing in the expected parameter for the current directory.
Best,
Joe