Trying to fix weird errror
This commit is contained in:
@@ -13,12 +13,12 @@ namespace Swarmops.Frontend.Controls.Meta
|
||||
public string Package { get; set; }
|
||||
public new string Controls { get; set; }
|
||||
|
||||
protected void Page_Load (object sender, EventArgs e)
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
string externalScriptUrl = "//hostedscripts.falkvinge.net";
|
||||
|
||||
string testFolderName = Server.MapPath ("~/Scripts/ExternalScripts");
|
||||
if (Directory.Exists (testFolderName))
|
||||
string testFolderName = Server.MapPath("~/Scripts/ExternalScripts");
|
||||
if (Directory.Exists(testFolderName))
|
||||
{
|
||||
externalScriptUrl = "/Scripts/ExternalScripts";
|
||||
}
|
||||
@@ -26,7 +26,7 @@ namespace Swarmops.Frontend.Controls.Meta
|
||||
// If we're debugging a seriously experimental new version of JEasyUI, look for it in /Scripts/Experimental
|
||||
// (a folder which doesn't commit to the github repo)
|
||||
|
||||
if (File.Exists (Server.MapPath ("~/Scripts/Experimental/easyui/jquery.easyui.min.js")))
|
||||
if (File.Exists(Server.MapPath("~/Scripts/Experimental/easyui/jquery.easyui.min.js")))
|
||||
{
|
||||
externalScriptUrl = "/Scripts/Experimental";
|
||||
}
|
||||
@@ -38,18 +38,18 @@ namespace Swarmops.Frontend.Controls.Meta
|
||||
case "easyui":
|
||||
|
||||
scriptRef.Append("<script src=\"" + externalScriptUrl +
|
||||
"/easyui/jquery.easyui.min.js\" type=\"text/javascript\"></script>\r\n");
|
||||
"/easyui/jquery.easyui.min.js\" type=\"text/javascript\"></script>\r\n");
|
||||
scriptRef.Append("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + externalScriptUrl +
|
||||
"/easyui/themes/icon.css\" />\r\n");
|
||||
"/easyui/themes/icon.css\" />\r\n");
|
||||
scriptRef.Append("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + externalScriptUrl +
|
||||
"/easyui/themes/default/easyui.css\" />\r\n"); // Supposed to contain all CSS
|
||||
"/easyui/themes/default/easyui.css\" />\r\n"); // Supposed to contain all CSS
|
||||
|
||||
if (Thread.CurrentThread.CurrentCulture.TextInfo.IsRightToLeft)
|
||||
{
|
||||
scriptRef.Append("<script src=\"" + externalScriptUrl +
|
||||
"/easyui/extensions/easyui-rtl.js\" type=\"text/javascript\"></script>\r\n");
|
||||
"/easyui/extensions/easyui-rtl.js\" type=\"text/javascript\"></script>\r\n");
|
||||
scriptRef.Append("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + externalScriptUrl +
|
||||
"/easyui/extensions/easyui-rtl.css\" />\r\n");
|
||||
"/easyui/extensions/easyui-rtl.css\" />\r\n");
|
||||
}
|
||||
|
||||
/* -- with the inclusion of the catchall CSS file, this code _should_ no longer be necessary...
|
||||
@@ -71,12 +71,13 @@ namespace Swarmops.Frontend.Controls.Meta
|
||||
case "fancybox":
|
||||
|
||||
scriptRef.Append("<script src=\"" + externalScriptUrl +
|
||||
"/fancybox/jquery.fancybox.min.js\" type=\"text/javascript\"></script>\r\n");
|
||||
"/fancybox/jquery.fancybox.min.js\" type=\"text/javascript\"></script>\r\n");
|
||||
|
||||
// If we're including Fancybox, always also include Elevated Zoom, which isn't external
|
||||
|
||||
scriptRef.Append("<script src='/Scripts/jquery.elevateZoom-3.0.8.min.js' type='text/javascript'></script>\r\n");
|
||||
|
||||
scriptRef.Append(
|
||||
"<script src='/Scripts/jquery.elevateZoom-3.0.8.min.js' type='text/javascript'></script>\r\n");
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -86,4 +87,5 @@ namespace Swarmops.Frontend.Controls.Meta
|
||||
this.LiteralReference.Text = scriptRef.ToString();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user