remove hideLoader

This commit is contained in:
vedatakd 2021-02-08 13:54:06 +03:00
parent df4d52d6c4
commit d2b47def81
4 changed files with 1 additions and 16 deletions

View File

@ -2,9 +2,6 @@ function showLoader() {
$('body').append('<div class="loading-cart"><div class="lds-ripple"><div></div><div></div></div></div>');
}
function hideLoader() {
$('.loading-cart').remove();
}
$("#catSelectionStepForm").on('click', 'input[type=submit]', function() {
$("input[type=submit]", $(this).parents("form")).removeAttr("clicked");
$(this).attr("clicked", "true");
@ -24,7 +21,6 @@ $(document).ready(function () {
type: 'get',
url: '/class/getcats/'+ divId,
success: function (response) {
hideLoader();
if(response['title'] != undefined){
response['success'] ? $('.post-icon > svg:last-of-type').hide() : $('.post-icon > svg:first-of-type').hide();

View File

@ -68,7 +68,6 @@ $(document).ready(function () {
type: 'get',
url: '/admin/class/actions/' + id + "," + type,
success: function (response) {
hideLoader()
$('#approved').html("Onaylandi");
$('#declined').html('Reddet');
},
@ -87,7 +86,6 @@ $(document).ready(function () {
type: 'get',
url: '/admin/class/actions/' + id + "," + type,
success: function (response) {
hideLoader()
$('#declined').html('Reddedildi');
$('#approved').html('Onayla');
},
@ -106,7 +104,6 @@ $(document).ready(function () {
type: 'get',
url: '/admin/class/actions/' + id + "," + type,
success: function (response) {
hideLoader()
$('#declined').html('Reddet');
$('#approved').html('Onayla');
$('#passive').html('Aktif Et').attr('id', 'pending_admin');
@ -126,7 +123,6 @@ $(document).ready(function () {
type: 'get',
url: '/admin/class/actions/' + id + "," + type,
success: function (response) {
hideLoader()
$('#declined').html('Reddet');
$('#approved').html('Onayla');
$('#pending_admin').html('Pasif Et').attr('id', 'passive');

View File

@ -2,9 +2,7 @@ function showLoader() {
$('body').append('<div class="loading-cart"><div class="lds-ripple"><div></div><div></div></div></div>');
}
function hideLoader() {
$('.loading-cart').remove();
}
var filter = {};
@ -17,7 +15,6 @@ filter.getCats = (catId, divId) => {
type: 'get',
url: '/class/getcats/' + divId,
success: function (response) {
hideLoader()
if (response == 0) {
stop();
} else {

View File

@ -164,8 +164,6 @@
data: "cat=" + cat + "&level=" + level,
url: "{{ url_route('visiosoft.module.advs::ajax') }}",
success: function(msg){
hideLoader()
console.log(msg);
$('.'+elem).find('option').remove();
$('.'+elem).append('<option value="">Choose an option...</option>');
$.each(msg, function(key, value){
@ -217,8 +215,6 @@
data: "cat=" + cat + "&level=" + level,
url: "{{ url_route('visiosoft.module.advs::ajaxCategory') }}",
success: function(msg){
hideLoader()
console.log(msg);
if(msg.length>0){
if(level!=0){
$('#category'+level).find('option').remove();