mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19039: Providing a way to ignore some shapes in Shape Tracing
Adding a boolean value named IgnoreShapeTracer to true will prevent the module from wrapping the shape inside <script /> tags e.g., Model.IgnoreShapeTracer = true; Work Item: 19039 --HG-- branch : 1.x
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
@{
|
||||
if (Model.IgnoreShapeTracer != null && (bool)Model.IgnoreShapeTracer) {
|
||||
@Display(Model.Metadata.ChildContent)
|
||||
return;
|
||||
}
|
||||
|
||||
Script.Require("jQueryUI").AtHead();
|
||||
Script.Include("orchard-designertools-shapetracing.js").AtHead();
|
||||
Script.Include("jquery.scrollTo-min.js").AtHead();
|
||||
|
Reference in New Issue
Block a user