Putted modalloading only to gridmap.js

pull/2836/head
int2001 2023-12-15 08:03:32 +00:00
rodzic e066b8b86d
commit f43fb0d919
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DFB1C13CD2DB037B
3 zmienionych plików z 57 dodań i 56 usunięć

Wyświetl plik

@ -147,7 +147,6 @@
</div>
<script>
var gridsquaremap = true;
var modalloading = false;
var type = "worked";
<?php if ($visitor == true) { ?>
var visitor = true;

Wyświetl plik

@ -130,10 +130,7 @@ L.Maidenhead = L.LayerGroup.extend({
}
if (typeof gridsquaremap !== 'undefined' && gridsquaremap == true) {
marker.on('click', function(event) {
if (!(modalloading)) {
modalloading=true;
spawnGridsquareModal(locator);
}
});
}
return marker;

Wyświetl plik

@ -1,3 +1,5 @@
var modalloading=false;
$('#band').change(function(){
var band = $("#band option:selected").text();
if (band != "SAT") {
@ -124,6 +126,7 @@ function plot(visitor, grid_two, grid_four, grid_six, grid_two_confirmed, grid_f
}
function spawnGridsquareModal(loc_4char) {
if (!(modalloading)) {
var ajax_data = ({
'Searchphrase': loc_4char,
'Band': $("#band").val(),
@ -133,6 +136,7 @@ function spawnGridsquareModal(loc_4char) {
if (type == 'activated') {
ajax_data.searchmode = 'activated';
}
modalloading=true;
$.ajax({
url: base_url + 'index.php/awards/qso_details_ajax',
type: 'post',
@ -178,6 +182,7 @@ function spawnGridsquareModal(loc_4char) {
}
});
}
}
function clearMarkers() {
$(".ld-ext-right-clear").addClass('running');