aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/wiki/includes/modals.html
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site/templates/wiki/includes/modals.html')
-rw-r--r--pydis_site/templates/wiki/includes/modals.html31
1 files changed, 0 insertions, 31 deletions
diff --git a/pydis_site/templates/wiki/includes/modals.html b/pydis_site/templates/wiki/includes/modals.html
deleted file mode 100644
index b86d4f65..00000000
--- a/pydis_site/templates/wiki/includes/modals.html
+++ /dev/null
@@ -1,31 +0,0 @@
-{% load sekizai_tags static %}
-{% addtoblock "js" %}
-<script type="text/javascript" src="{% static "wiki/js/jquery-ui-1.12.1.custom/jquery-ui.min.js" %}"></script>
-<script type="text/javascript">
-$(document).ready(function() {
- $(".modal-content").on("resizestart", function(event, ui) {
- $(ui.element).find(".modal-body, iframe").each(function() {
- elem = $(this);
- elem.data("resizeoriginalheight", elem.height());
- });
- });
-
- $(".modal-content").on("resize", function(event, ui) {
- ui.element.parents('.modal-dialog').css("margin-left", -ui.size.width/2);
- ui.element.parents('.modal-dialog').css("margin-top", -ui.size.height/2);
- ui.element.parents('.modal-dialog').css("top", "50%");
- ui.element.parents('.modal-dialog').css("left", "50%");
-
- $(ui.element).find(".modal-body,iframe").each(function() {
- elem = $(this);
- $(this).css("min-height", elem.data("resizeoriginalheight") + ui.size.height - ui.originalSize.height);
- });
- });
-
- $(".modal-content").resizable();
-});
-</script>
-{% endaddtoblock %}
-{% addtoblock "css" %}
-<link rel="stylesheet" href="{% static "wiki/js/jquery-ui-1.12.1.custom/jquery-ui.min.css" %}" type="text/css" />
-{% endaddtoblock %}