Merge pull request #2836 from int2001/preventDetailsDouble
Prevent DataTable-Error when clicking Locator too fast
这个提交包含在:
当前提交
065c2f96f9
共有 2 个文件被更改,包括 58 次插入 和 51 次删除
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
L.Maidenhead = L.LayerGroup.extend({
|
L.Maidenhead = L.LayerGroup.extend({
|
||||||
|
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
// Line and label color
|
// Line and label color
|
||||||
color: 'rgba(255, 0, 0, 0.4)',
|
color: 'rgba(255, 0, 0, 0.4)',
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
var modalloading=false;
|
||||||
|
|
||||||
$('#band').change(function(){
|
$('#band').change(function(){
|
||||||
var band = $("#band option:selected").text();
|
var band = $("#band option:selected").text();
|
||||||
if (band != "SAT") {
|
if (band != "SAT") {
|
||||||
|
|
@ -124,56 +126,62 @@ function plot(visitor, grid_two, grid_four, grid_six, grid_two_confirmed, grid_f
|
||||||
}
|
}
|
||||||
|
|
||||||
function spawnGridsquareModal(loc_4char) {
|
function spawnGridsquareModal(loc_4char) {
|
||||||
var ajax_data = ({
|
if (!(modalloading)) {
|
||||||
'Searchphrase': loc_4char,
|
var ajax_data = ({
|
||||||
'Band': $("#band").val(),
|
'Searchphrase': loc_4char,
|
||||||
'Mode': $("#mode").val(),
|
'Band': $("#band").val(),
|
||||||
'Type': 'VUCC'
|
'Mode': $("#mode").val(),
|
||||||
})
|
'Type': 'VUCC'
|
||||||
if (type == 'activated') {
|
})
|
||||||
ajax_data.searchmode = 'activated';
|
if (type == 'activated') {
|
||||||
}
|
ajax_data.searchmode = 'activated';
|
||||||
$.ajax({
|
}
|
||||||
url: base_url + 'index.php/awards/qso_details_ajax',
|
modalloading=true;
|
||||||
type: 'post',
|
$.ajax({
|
||||||
data: ajax_data,
|
url: base_url + 'index.php/awards/qso_details_ajax',
|
||||||
success: function (html) {
|
type: 'post',
|
||||||
BootstrapDialog.show({
|
data: ajax_data,
|
||||||
title: lang_general_word_qso_data,
|
success: function (html) {
|
||||||
cssClass: 'qso-dialog',
|
BootstrapDialog.show({
|
||||||
size: BootstrapDialog.SIZE_WIDE,
|
title: lang_general_word_qso_data,
|
||||||
nl2br: false,
|
cssClass: 'qso-dialog',
|
||||||
message: html,
|
size: BootstrapDialog.SIZE_WIDE,
|
||||||
onshown: function(dialog) {
|
nl2br: false,
|
||||||
|
message: html,
|
||||||
$('[data-bs-toggle="tooltip"]').tooltip();
|
onshown: function(dialog) {
|
||||||
$('.contacttable').DataTable({
|
modalloading=false;
|
||||||
"pageLength": 25,
|
$('[data-bs-toggle="tooltip"]').tooltip();
|
||||||
responsive: false,
|
$('.contacttable').DataTable({
|
||||||
ordering: false,
|
"pageLength": 25,
|
||||||
"scrollY": "550px",
|
responsive: false,
|
||||||
"scrollCollapse": true,
|
ordering: false,
|
||||||
"paging": false,
|
"scrollY": "550px",
|
||||||
"scrollX": true,
|
"scrollCollapse": true,
|
||||||
dom: 'Bfrtip',
|
"paging": false,
|
||||||
buttons: [
|
"scrollX": true,
|
||||||
'csv'
|
dom: 'Bfrtip',
|
||||||
]
|
buttons: [
|
||||||
});
|
'csv'
|
||||||
// change color of csv-button if dark mode is chosen
|
]
|
||||||
if (isDarkModeTheme()) {
|
});
|
||||||
$(".buttons-csv").css("color", "white");
|
// change color of csv-button if dark mode is chosen
|
||||||
}
|
if (isDarkModeTheme()) {
|
||||||
},
|
$(".buttons-csv").css("color", "white");
|
||||||
buttons: [{
|
}
|
||||||
label: lang_admin_close,
|
},
|
||||||
action: function(dialogItself) {
|
buttons: [{
|
||||||
dialogItself.close();
|
label: lang_admin_close,
|
||||||
}
|
action: function(dialogItself) {
|
||||||
}]
|
dialogItself.close();
|
||||||
});
|
}
|
||||||
}
|
}]
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
error: function(e) {
|
||||||
|
modalloading=false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function clearMarkers() {
|
function clearMarkers() {
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用