Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
maaaximum-at-2sic committed Mar 2, 2022
1 parent 9d624bc commit 3338bab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bs5/_Assets.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
}

// 4. Include styles of the App
<link rel="stylesheet" href="@App.Path/bs4/dist/styles.min.css" data-enableoptimizations="true" />
<link rel="stylesheet" href="@App.Path/bs5/dist/styles.min.css" data-enableoptimizations="true" />

// 5. If we need scripts (only on the single-album-view) activate these. Note that DynamicModel contains the parameters
if(DynamicModel.scripts == true) {
// Activate turnOn and Fancybox4 - see https://r.2sxc.org/turnon - fancybox4 is a standard WebResources in 2sxc
page.Activate("turnOn", "fancybox4");
<script type="text/javascript" src="@App.Path/bs4/dist/scripts.min.js" data-enableoptimizations="bottom"></script>
<script type="text/javascript" src="@App.Path/bs5/dist/scripts.min.js" data-enableoptimizations="bottom"></script>
<turnOn turn-on='{"await": ["window.appNews5"], "run": "window.appNews5.activateFancybox()", "data": { "groupId": "@CmsContext.Module.Id" }}'></turnOn>
}
}

0 comments on commit 3338bab

Please sign in to comment.