Browse Source

remove loader from frontend

devel
Dmitry Novikov 7 years ago
parent
commit
deef97fca6
  1. 8
      static/css/custom.css
  2. BIN
      static/img/loading.gif
  3. 3
      static/js/my.js
  4. 6
      templates/all_base.html

8
static/css/custom.css

@ -256,14 +256,6 @@ div#loading {
z-index: 1;
display: none;
}
div#loading>div.gif {
position: absolute;
left: 49%;
top: 39%;
background-color: white;
border-radius: 13px;
border-style: ridge;
}

BIN
static/img/loading.gif

Before

Width: 100  |  Height: 100  |  Size: 6.6 KiB

3
static/js/my.js

@ -11,7 +11,6 @@ var cnt='<div class="modal-header '+type_class+'">' +
'<div class="modal-body">'+content+'</div>' +
'<div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Закрыть</button></div>';
show_ModalMyContent(cnt);
$('#loading').hide();
}
function showErr(errContent) {show_Modal('Ошибка', errContent, 'warning');}
@ -125,11 +124,9 @@ $(document).ajaxError(function (ev, jqXHR, ajaxSettings, thrownError) {
}, opt);
var fill_block_fn = function(){
$('#loading').show();
var url = $(this).attr('data-href');
$.get(url, function(r){
$(settings.dst_block).html(r);
$('#loading').hide();
});
};

6
templates/all_base.html

@ -16,12 +16,6 @@
</head>
<body>
<div id="loading">
<div class="gif">
<img src="/static/img/loading.gif"/>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="modFrm" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">

Loading…
Cancel
Save