-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Remove rawgit and a bit of jQuery (#808)
* BUG: Remove rawgit and a bit of jQuery - We use jsdelivr instead of rawgit which has better support for versioning, etc. - The style template needed jQuery but some distributions such as Voilá would not make jQuery available making this crash. Fixes #751 * BUG: Remove rawgit and a bit of jQuery - We use jsdelivr instead of rawgit which has better support for versioning, etc. - The style template needed jQuery but some distributions such as Voilá would not make jQuery available making this crash. - Fix tests Fixes #751
- Loading branch information
1 parent
406e043
commit 5b1f6a1
Showing
6 changed files
with
44 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
<script type="text/javascript"> | ||
{% raw %} | ||
if ($("#emperor-css").length == 0){{ | ||
$("head").append([ | ||
{% endraw %} | ||
if (document.querySelector("#emperor-css") === null){ | ||
document.querySelector("head").insertAdjacentHTML("beforeend",[ | ||
'<link id="emperor-css" rel="stylesheet" type="text/css" href="{{ base_url }}/css/emperor.css">', | ||
'<link rel="stylesheet" type="text/css" href="{{ base_url }}/vendor/css/jquery-ui.min.css">', | ||
'<link rel="stylesheet" type="text/css" href="{{ base_url }}/vendor/css/slick.grid.min.css">', | ||
'<link rel="stylesheet" type="text/css" href="{{ base_url }}/vendor/css/spectrum.min.css">', | ||
'<link rel="stylesheet" type="text/css" href="{{ base_url }}/vendor/css/chosen.min.css">', | ||
'<link rel="stylesheet" type="text/css" href="{{ base_url }}/vendor/css/jquery.contextMenu.min.css">' | ||
]); | ||
}} | ||
} | ||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters