From ad562111de154328ac9281713e21c182bf2731f3 Mon Sep 17 00:00:00 2001 From: Zambom Date: Tue, 24 Jan 2017 23:58:28 -0200 Subject: [PATCH] Resolving responsive errors --- amadeus/static/js/topics.js | 6 +++--- topics/templates/topics/list.html | 2 +- webpage/templates/webpages/view.html | 25 +++++++++++++------------ 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/amadeus/static/js/topics.js b/amadeus/static/js/topics.js index 78d5243..1a26f35 100644 --- a/amadeus/static/js/topics.js +++ b/amadeus/static/js/topics.js @@ -1,4 +1,4 @@ -$('.collapse').on('show.bs.collapse', function (e) { +$('.topic-panel').on('show.bs.collapse', function (e) { if($(this).is(e.target)){ var btn = $(this).parent().find('.fa-angle-right'); @@ -11,7 +11,7 @@ $('.collapse').on('show.bs.collapse', function (e) { }); // Update breadcrumb with topic's name -$('.collapse').on('shown.bs.collapse', function (e) { +$('.topic-panel').on('shown.bs.collapse', function (e) { if($(this).is(e.target)){ var li = $(".breadcrumb").find('li:last-child'); var li_text = $(li).html(); @@ -28,7 +28,7 @@ $('.collapse').on('shown.bs.collapse', function (e) { }); // Reset breadcrumb to it's normal state -$('.collapse').on('hide.bs.collapse', function (e) { +$('.topic-panel').on('hide.bs.collapse', function (e) { if($(this).is(e.target)){ var btn = $(this).parent().find('.fa-angle-down'); diff --git a/topics/templates/topics/list.html b/topics/templates/topics/list.html index bbed1bf..23491a7 100644 --- a/topics/templates/topics/list.html +++ b/topics/templates/topics/list.html @@ -34,7 +34,7 @@ -
+
diff --git a/webpage/templates/webpages/view.html b/webpage/templates/webpages/view.html index 393cbf3..c94e042 100644 --- a/webpage/templates/webpages/view.html +++ b/webpage/templates/webpages/view.html @@ -34,21 +34,22 @@
{% endif %} -
-
-

- {{ webpage }} -

+
+
+

+ {{ webpage }} +

-
- +
+ +
-
-
- {% autoescape off %} - {{ webpage.content }} - {% endautoescape %} +
+ {% autoescape off %} + {{ webpage.content }} + {% endautoescape %} +
{% endblock %} -- libgit2 0.21.2