Commit 66108e18b1f789826b3331ca8e54534422562e3a

Authored by Zambom
1 parent 14083b9e

Adjusting news image responsivity in HD screens

amadeus/static/css/base/amadeus.css
... ... @@ -1150,7 +1150,9 @@ li.item .notify_badge {
1150 1150  
1151 1151 /*Carrosel change*/
1152 1152  
1153   -
  1153 +.carousel-inner > .item > span > img, .carousel-inner > .item > span > a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img {
  1154 + width: 100%;
  1155 +}
1154 1156  
1155 1157 .carousel-control.right{
1156 1158 background-image: none !important;
... ...
subjects/static/subjects/js/modal_subject.js
1 1 var RemoveSubject = {
2 2 remove: function(url,dados,id_li_link){
3   - $("#subject").modal('toggle');
4   - $.post(url,dados, function(data){
5   - $(id_li_link).remove();
6   - $('body').removeClass('modal-open');
7   - $("#modal_course").empty();
8   - $(".modal-backdrop.in").remove();
9   - window.location.href = data['url'];
10   - alertify.success("Subject removed successfully!");
11   - }).fail(function(){
12   - $("#modal_course").empty();
13   - $("#modal_course").append(data);
14   - $('#subject').modal('show');
15   - });
  3 + $("#subject").modal('toggle');
  4 + $.post(url,dados, function(data){
  5 + $(id_li_link).remove();
  6 + $('body').removeClass('modal-open');
  7 + $("#modal_course").empty();
  8 + $(".modal-backdrop.in").remove();
  9 + window.location.href = data['url'];
  10 + alertify.success("Subject removed successfully!");
  11 + }).fail(function(){
  12 + $("#modal_course").empty();
  13 + $("#modal_course").append(data);
  14 + $('#subject').modal('show');
  15 + });
16 16 }
17 17 }
18 18 var delete_subject = {
19 19 get: function (url, id_modal, id_div_modal){
20   - $.get(url, function(data){
21   - if($(id_modal).length){
22   - $(id_div_modal).empty();
23   - }
24   - if (!data['error']){ //If there is no error in the removing process, no message is shown
25   - $(id_div_modal).append(data);
26   - $(id_modal).modal('show');
27   - }else{
28   - window.location.href = data['url']; // If there is a error, we redirect to another URL
29   - }
30   - });
  20 + $.get(url, function(data){
  21 + if($(id_modal).length){
  22 + $(id_div_modal).empty();
  23 + }
  24 + if (!data['error']){ //If there is no error in the removing process, no message is shown
  25 + $(id_div_modal).append(data);
  26 + $(id_modal).modal('show');
  27 + }else{
  28 + window.location.href = data['url']; // If there is a error, we redirect to another URL
  29 + }
  30 + });
31 31 }
32 32 };
33 33  
34 34  
35 35 var subscribe_subject = {
36 36 get: function(url, id_modal, id_div_modal){
37   - $.get(url, function(data){
38   - if($(id_modal).length){
39   - $(id_div_modal).empty();
40   - }
41   - if (!data['error']){ //If there is no error in the removing process, no message is shown
42   - $(id_div_modal).append(data);
43   - $(id_modal).modal('show');
44   - }else{
45   - window.location.href = data['url']; // If there is a error, we redirect to another URL
46   - }
47   - });
  37 + $.get(url, function(data){
  38 + if($(id_modal).length){
  39 + $(id_div_modal).empty();
  40 + }
  41 + if (!data['error']){ //If there is no error in the removing process, no message is shown
  42 + $(id_div_modal).append(data);
  43 + $(id_modal).modal('show');
  44 + }else{
  45 + window.location.href = data['url']; // If there is a error, we redirect to another URL
  46 + }
  47 + });
48 48 }
49 49 }
50 50  
51 51  
52 52 var SubscribeSubject = {
53 53 subscribe: function(url,dados,id_li_link){
54   - $("#subject").modal('toggle');
55   - $.post(url,dados, function(data){
56   - $(id_li_link).remove();
57   - $('body').removeClass('modal-open');
58   - $("#modal_course").empty();
59   - $(".modal-backdrop.in").remove();
60   - window.location.href = data['url'];
61   - }).fail(function(){
62   - $("#modal_course").empty();
63   - $("#modal_course").append(data);
64   - $('#subject').modal('show');
65   - });
  54 + $("#subject").modal('toggle');
  55 + $.post(url,dados, function(data){
  56 + $(id_li_link).remove();
  57 + $('body').removeClass('modal-open');
  58 + $("#modal_course").empty();
  59 + $(".modal-backdrop.in").remove();
  60 + window.location.href = data['url'];
  61 + }).fail(function(){
  62 + $("#modal_course").empty();
  63 + $("#modal_course").append(data);
  64 + $('#subject').modal('show');
  65 + });
66 66 }
67 67 }
68 68 \ No newline at end of file
... ...