From 66108e18b1f789826b3331ca8e54534422562e3a Mon Sep 17 00:00:00 2001 From: Zambom Date: Tue, 29 Aug 2017 12:55:29 -0300 Subject: [PATCH] Adjusting news image responsivity in HD screens --- amadeus/static/css/base/amadeus.css | 4 +++- subjects/static/subjects/js/modal_subject.js | 94 +++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------- 2 files changed, 50 insertions(+), 48 deletions(-) diff --git a/amadeus/static/css/base/amadeus.css b/amadeus/static/css/base/amadeus.css index af8e211..b13ed17 100755 --- a/amadeus/static/css/base/amadeus.css +++ b/amadeus/static/css/base/amadeus.css @@ -1150,7 +1150,9 @@ li.item .notify_badge { /*Carrosel change*/ - +.carousel-inner > .item > span > img, .carousel-inner > .item > span > a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img { + width: 100%; +} .carousel-control.right{ background-image: none !important; diff --git a/subjects/static/subjects/js/modal_subject.js b/subjects/static/subjects/js/modal_subject.js index 126588c..00a87a7 100644 --- a/subjects/static/subjects/js/modal_subject.js +++ b/subjects/static/subjects/js/modal_subject.js @@ -1,67 +1,67 @@ var RemoveSubject = { remove: function(url,dados,id_li_link){ - $("#subject").modal('toggle'); - $.post(url,dados, function(data){ - $(id_li_link).remove(); - $('body').removeClass('modal-open'); - $("#modal_course").empty(); - $(".modal-backdrop.in").remove(); - window.location.href = data['url']; - alertify.success("Subject removed successfully!"); - }).fail(function(){ - $("#modal_course").empty(); - $("#modal_course").append(data); - $('#subject').modal('show'); - }); + $("#subject").modal('toggle'); + $.post(url,dados, function(data){ + $(id_li_link).remove(); + $('body').removeClass('modal-open'); + $("#modal_course").empty(); + $(".modal-backdrop.in").remove(); + window.location.href = data['url']; + alertify.success("Subject removed successfully!"); + }).fail(function(){ + $("#modal_course").empty(); + $("#modal_course").append(data); + $('#subject').modal('show'); + }); } } var delete_subject = { get: function (url, id_modal, id_div_modal){ - $.get(url, function(data){ - if($(id_modal).length){ - $(id_div_modal).empty(); - } - if (!data['error']){ //If there is no error in the removing process, no message is shown - $(id_div_modal).append(data); - $(id_modal).modal('show'); - }else{ - window.location.href = data['url']; // If there is a error, we redirect to another URL - } - }); + $.get(url, function(data){ + if($(id_modal).length){ + $(id_div_modal).empty(); + } + if (!data['error']){ //If there is no error in the removing process, no message is shown + $(id_div_modal).append(data); + $(id_modal).modal('show'); + }else{ + window.location.href = data['url']; // If there is a error, we redirect to another URL + } + }); } }; var subscribe_subject = { get: function(url, id_modal, id_div_modal){ - $.get(url, function(data){ - if($(id_modal).length){ - $(id_div_modal).empty(); - } - if (!data['error']){ //If there is no error in the removing process, no message is shown - $(id_div_modal).append(data); - $(id_modal).modal('show'); - }else{ - window.location.href = data['url']; // If there is a error, we redirect to another URL - } - }); + $.get(url, function(data){ + if($(id_modal).length){ + $(id_div_modal).empty(); + } + if (!data['error']){ //If there is no error in the removing process, no message is shown + $(id_div_modal).append(data); + $(id_modal).modal('show'); + }else{ + window.location.href = data['url']; // If there is a error, we redirect to another URL + } + }); } } var SubscribeSubject = { subscribe: function(url,dados,id_li_link){ - $("#subject").modal('toggle'); - $.post(url,dados, function(data){ - $(id_li_link).remove(); - $('body').removeClass('modal-open'); - $("#modal_course").empty(); - $(".modal-backdrop.in").remove(); - window.location.href = data['url']; - }).fail(function(){ - $("#modal_course").empty(); - $("#modal_course").append(data); - $('#subject').modal('show'); - }); + $("#subject").modal('toggle'); + $.post(url,dados, function(data){ + $(id_li_link).remove(); + $('body').removeClass('modal-open'); + $("#modal_course").empty(); + $(".modal-backdrop.in").remove(); + window.location.href = data['url']; + }).fail(function(){ + $("#modal_course").empty(); + $("#modal_course").append(data); + $('#subject').modal('show'); + }); } } \ No newline at end of file -- libgit2 0.21.2