mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing template source file information
--HG-- branch : dev
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
(function ($) {
|
||||
jQuery(document).ready(function ($) {
|
||||
$(function () {
|
||||
// append the shape tracing window container at the end of the document
|
||||
$('<div id="shape-tracing-container"> ' +
|
||||
@@ -405,4 +405,4 @@
|
||||
return node;
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
});
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Web.Routing;
|
||||
using System.Xml;
|
||||
using Orchard.DisplayManagement.Descriptors;
|
||||
@@ -96,11 +97,11 @@ namespace Orchard.DesignerTools.Services {
|
||||
context.Shape._Dump = sw.ToString();
|
||||
}
|
||||
|
||||
shape.Template = descriptor.BindingSource;
|
||||
shape.Template = descriptor.Bindings.Values.FirstOrDefault().BindingSource;
|
||||
|
||||
try {
|
||||
if (_webSiteFolder.FileExists(descriptor.BindingSource)) {
|
||||
shape.TemplateContent = _webSiteFolder.ReadFile(descriptor.BindingSource);
|
||||
if (_webSiteFolder.FileExists(shape.Template)) {
|
||||
shape.TemplateContent = _webSiteFolder.ReadFile(shape.Template);
|
||||
}
|
||||
}
|
||||
catch {
|
||||
|
||||
Reference in New Issue
Block a user