mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
commit
694ce20b7c
@ -2,9 +2,6 @@ function showLoader() {
|
|||||||
$('body').append('<div class="loading-cart"><div class="lds-ripple"><div></div><div></div></div></div>');
|
$('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() {
|
$("#catSelectionStepForm").on('click', 'input[type=submit]', function() {
|
||||||
$("input[type=submit]", $(this).parents("form")).removeAttr("clicked");
|
$("input[type=submit]", $(this).parents("form")).removeAttr("clicked");
|
||||||
$(this).attr("clicked", "true");
|
$(this).attr("clicked", "true");
|
||||||
@ -24,7 +21,6 @@ $(document).ready(function () {
|
|||||||
type: 'get',
|
type: 'get',
|
||||||
url: '/class/getcats/'+ divId,
|
url: '/class/getcats/'+ divId,
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
hideLoader();
|
|
||||||
if(response['title'] != undefined){
|
if(response['title'] != undefined){
|
||||||
response['success'] ? $('.post-icon > svg:last-of-type').hide() : $('.post-icon > svg:first-of-type').hide();
|
response['success'] ? $('.post-icon > svg:last-of-type').hide() : $('.post-icon > svg:first-of-type').hide();
|
||||||
|
|
||||||
|
|||||||
@ -68,7 +68,6 @@ $(document).ready(function () {
|
|||||||
type: 'get',
|
type: 'get',
|
||||||
url: '/admin/class/actions/' + id + "," + type,
|
url: '/admin/class/actions/' + id + "," + type,
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
hideLoader()
|
|
||||||
$('#approved').html("Onaylandi");
|
$('#approved').html("Onaylandi");
|
||||||
$('#declined').html('Reddet');
|
$('#declined').html('Reddet');
|
||||||
},
|
},
|
||||||
@ -87,7 +86,6 @@ $(document).ready(function () {
|
|||||||
type: 'get',
|
type: 'get',
|
||||||
url: '/admin/class/actions/' + id + "," + type,
|
url: '/admin/class/actions/' + id + "," + type,
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
hideLoader()
|
|
||||||
$('#declined').html('Reddedildi');
|
$('#declined').html('Reddedildi');
|
||||||
$('#approved').html('Onayla');
|
$('#approved').html('Onayla');
|
||||||
},
|
},
|
||||||
@ -106,7 +104,6 @@ $(document).ready(function () {
|
|||||||
type: 'get',
|
type: 'get',
|
||||||
url: '/admin/class/actions/' + id + "," + type,
|
url: '/admin/class/actions/' + id + "," + type,
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
hideLoader()
|
|
||||||
$('#declined').html('Reddet');
|
$('#declined').html('Reddet');
|
||||||
$('#approved').html('Onayla');
|
$('#approved').html('Onayla');
|
||||||
$('#passive').html('Aktif Et').attr('id', 'pending_admin');
|
$('#passive').html('Aktif Et').attr('id', 'pending_admin');
|
||||||
@ -126,7 +123,6 @@ $(document).ready(function () {
|
|||||||
type: 'get',
|
type: 'get',
|
||||||
url: '/admin/class/actions/' + id + "," + type,
|
url: '/admin/class/actions/' + id + "," + type,
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
hideLoader()
|
|
||||||
$('#declined').html('Reddet');
|
$('#declined').html('Reddet');
|
||||||
$('#approved').html('Onayla');
|
$('#approved').html('Onayla');
|
||||||
$('#pending_admin').html('Pasif Et').attr('id', 'passive');
|
$('#pending_admin').html('Pasif Et').attr('id', 'passive');
|
||||||
|
|||||||
@ -2,9 +2,7 @@ function showLoader() {
|
|||||||
$('body').append('<div class="loading-cart"><div class="lds-ripple"><div></div><div></div></div></div>');
|
$('body').append('<div class="loading-cart"><div class="lds-ripple"><div></div><div></div></div></div>');
|
||||||
}
|
}
|
||||||
|
|
||||||
function hideLoader() {
|
|
||||||
$('.loading-cart').remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
var filter = {};
|
var filter = {};
|
||||||
@ -17,7 +15,6 @@ filter.getCats = (catId, divId) => {
|
|||||||
type: 'get',
|
type: 'get',
|
||||||
url: '/class/getcats/' + divId,
|
url: '/class/getcats/' + divId,
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
hideLoader()
|
|
||||||
if (response == 0) {
|
if (response == 0) {
|
||||||
stop();
|
stop();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -164,8 +164,6 @@
|
|||||||
data: "cat=" + cat + "&level=" + level,
|
data: "cat=" + cat + "&level=" + level,
|
||||||
url: "{{ url_route('visiosoft.module.advs::ajax') }}",
|
url: "{{ url_route('visiosoft.module.advs::ajax') }}",
|
||||||
success: function(msg){
|
success: function(msg){
|
||||||
hideLoader()
|
|
||||||
console.log(msg);
|
|
||||||
$('.'+elem).find('option').remove();
|
$('.'+elem).find('option').remove();
|
||||||
$('.'+elem).append('<option value="">Choose an option...</option>');
|
$('.'+elem).append('<option value="">Choose an option...</option>');
|
||||||
$.each(msg, function(key, value){
|
$.each(msg, function(key, value){
|
||||||
@ -217,8 +215,6 @@
|
|||||||
data: "cat=" + cat + "&level=" + level,
|
data: "cat=" + cat + "&level=" + level,
|
||||||
url: "{{ url_route('visiosoft.module.advs::ajaxCategory') }}",
|
url: "{{ url_route('visiosoft.module.advs::ajaxCategory') }}",
|
||||||
success: function(msg){
|
success: function(msg){
|
||||||
hideLoader()
|
|
||||||
console.log(msg);
|
|
||||||
if(msg.length>0){
|
if(msg.length>0){
|
||||||
if(level!=0){
|
if(level!=0){
|
||||||
$('#category'+level).find('option').remove();
|
$('#category'+level).find('option').remove();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user