Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor issue with JQuery #14

Open
Dubbsman opened this issue Sep 25, 2013 · 0 comments
Open

Minor issue with JQuery #14

Dubbsman opened this issue Sep 25, 2013 · 0 comments

Comments

@Dubbsman
Copy link

I was getting scrip errors and the Display Setting page (admin) was not rendering correctly. It seems that I am getting $ is undefined, which I have seen when Jquery is not the 1st script declared. I made the fix in 2 cshtml files and appears to be working correctly.

DisplaySettings.cshtml
@model WebAdvanced.Sitemap.ViewModels.DisplaySettingsPageModel
@{
Script.Require("JQuery").AtHead();

IndexSettingsModel.cshtml
@model WebAdvanced.Sitemap.ViewModels.IndexSettingsModel
@{
Script.Require("JQuery").AtHead();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant