From d01acfa9be113b4fb9d2b4a176f9d61b189b1ff2 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Wed, 7 Aug 2024 14:44:37 +0200 Subject: [PATCH] fixing quotes because of gettext --- application/views/interface_assets/footer.php | 104 +++++++++--------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 924959104..ebf2d2776 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -389,10 +389,10 @@ $(function () { $('#btn-save').on('click', function() { var resultquery = $('#builder').queryBuilder('getRules'); if (!$.isEmptyObject(resultquery)) { - let message = ' ' + let message = "" + '' BootstrapDialog.confirm({ - title: '', + title: "", size: BootstrapDialog.SIZE_NORMAL, cssClass: 'description-dialog', closable: true, @@ -408,16 +408,16 @@ $(function () { }) .done(function(data) { $(".alert").remove(); - $(".card-body.main").append('
'); + $(".card-body.main").append('
'+""+'
'); if ($("#querydropdown option").length == 0) { - var dropdowninfo = '

' + + var dropdowninfo = '

' + '
' + - '' + + '' + '
' + '' + '
' + - '' + + '' + '
'; $("#btn-save").after(dropdowninfo); } @@ -429,12 +429,12 @@ $(function () { } else { BootstrapDialog.show({ - title: '', + title: "", type: BootstrapDialog.TYPE_WARNING, size: BootstrapDialog.SIZE_NORMAL, cssClass: 'queries-dialog', nl2br: false, - message: '', + message: "", buttons: [{ label: lang_admin_close, action: function(dialogItself) { @@ -455,7 +455,7 @@ $(function () { }) .done(function(data) { - $('.exportbutton').html(''); + $('.exportbutton').html(''); $('.card-body.result').empty(); $(".search-results-box").show(); @@ -492,8 +492,8 @@ $(function () { function delete_stored_query(id) { BootstrapDialog.confirm({ - title: '', - message: '', + title: "", + message: "", type: BootstrapDialog.TYPE_DANGER, closable: true, draggable: true, @@ -507,7 +507,7 @@ $(function () { 'id': id }, success: function(data) { - $(".bootstrap-dialog-message").prepend('
'); + $(".bootstrap-dialog-message").prepend('
'+""+'
'); $("#query_" + id).remove(); // removes query from table in dialog $("#querydropdown option[value='" + id + "']").remove(); // removes query from dropdown if ($("#querydropdown option").length == 0) { @@ -516,7 +516,7 @@ $(function () { }; }, error: function() { - $(".bootstrap-dialog-message").prepend('
'); + $(".bootstrap-dialog-message").prepend('
'+""+'
'); }, }); } @@ -527,12 +527,12 @@ $(function () { function edit_stored_query(id) { $('#description_' + id).attr('contenteditable', 'true'); $('#description_' + id).focus(); - $('#edit_' + id).html(''); // Change to save button + $('#edit_' + id).html(''+""+''); // Change to save button } function save_edited_query(id) { $('#description_' + id).attr('contenteditable', 'false'); - $('#edit_' + id).html(''); + $('#edit_' + id).html(''+""+''); $.ajax({ url: base_url + 'index.php/search/save_edited_query', type: 'post', @@ -541,12 +541,12 @@ $(function () { description: $('#description_' + id).html(), }, success: function(html) { - $('#edit_' + id).html(''); // Change to edit button - $(".bootstrap-dialog-message").prepend('
'); + $('#edit_' + id).html(''+""+''); // Change to edit button + $(".bootstrap-dialog-message").prepend('
'+""+'
'); $("#querydropdown option[value='" + id + "']").text($('#description_' + id).html()); // Change text in dropdown }, error: function() { - $(".bootstrap-dialog-message").prepend('
'); + $(".bootstrap-dialog-message").prepend('
'+""+'
'); }, }); } @@ -558,7 +558,7 @@ $(function () { type: 'post', success: function(html) { BootstrapDialog.show({ - title: '', + title: "", size: BootstrapDialog.SIZE_WIDE, cssClass: 'queries-dialog', nl2br: false, @@ -586,7 +586,7 @@ $(function () { temp: "testvar" }) .done(function(data) { - $('.exportbutton').html(''); + $('.exportbutton').html(''); $('.card-body.result').empty(); $(".search-results-box").show(); @@ -622,12 +622,12 @@ $(function () { }); } else { BootstrapDialog.show({ - title: '', + title: "", type: BootstrapDialog.TYPE_WARNING, size: BootstrapDialog.SIZE_NORMAL, cssClass: 'queries-dialog', nl2br: false, - message: '', + message: "", buttons: [{ label: lang_admin_close, action: function(dialogItself) { @@ -1171,7 +1171,7 @@ $($('#callsign')).on('keypress',function(e) { if (data.error == 'not_logged_in') { $(".radio_cat_state" ).remove(); if($('.radio_login_error').length == 0) { - $('.qso_panel').prepend("
login"), base_url()); ?>
"); + $('.qso_panel').prepend(''); } } // Put future Errorhandling here @@ -1377,14 +1377,14 @@ $(document).ready(function(){ if (grid_four_confirmed_count > 0) { var span = document.getElementById('confirmed_grids'); - span.innerText = span.textContent = '('+grid_four_confirmed_count+' '+(grid_four_confirmed_count != 1 ? 's' : '')+') '; + span.innerText = span.textContent = '('+grid_four_confirmed_count+" "+(grid_four_confirmed_count != 1 ? 's' : '')+') '; } if ((grid_four_count-grid_four_confirmed_count) > 0) { var span = document.getElementById('worked_grids'); - span.innerText = span.textContent = '('+(grid_four_count-grid_four_confirmed_count)+' '+(grid_four_count-grid_four_confirmed_count != 1 ? 's' : '')+') '; + span.innerText = span.textContent = '('+(grid_four_count-grid_four_confirmed_count)+" "+(grid_four_count-grid_four_confirmed_count != 1 ? 's' : '')+') '; } var span = document.getElementById('sum_grids'); - span.innerText = span.textContent = ' '+': '+grid_four_count+' '+(grid_four_count != 1 ? 's' : ''); + span.innerText = span.textContent = " "+': '+grid_four_count+" "+(grid_four_count != 1 ? 's' : ''); var maidenhead = L.maidenhead().addTo(map); @@ -1450,7 +1450,7 @@ $(document).ready(function(){ uri->segment(1) == "gridsquares" && $this->uri->segment(2) == "band") { ?> var bands_available = ; - $('#gridsquare_bands').append('') + $('#gridsquare_bands').append('') $.each(bands_available, function(key, value) { $('#gridsquare_bands') .append($("") @@ -1521,14 +1521,14 @@ $(document).ready(function(){ if (grid_four_confirmed_count > 0) { var span = document.getElementById('confirmed_grids'); - span.innerText = span.textContent = '('+grid_four_confirmed_count+' '+(grid_four_confirmed_count != 1 ? 's' : '')+') '; + span.innerText = span.textContent = '('+grid_four_confirmed_count+" "+(grid_four_confirmed_count != 1 ? 's' : '')+') '; } if ((grid_four_count-grid_four_confirmed_count) > 0) { var span = document.getElementById('activated_grids'); - span.innerText = span.textContent = '('+(grid_four_count-grid_four_confirmed_count)+' '+(grid_four_count-grid_four_confirmed_count != 1 ? 's' : '')+') '; + span.innerText = span.textContent = '('+(grid_four_count-grid_four_confirmed_count)+" "+(grid_four_count-grid_four_confirmed_count != 1 ? 's' : '')+') '; } var span = document.getElementById('sum_grids'); - span.innerText = span.textContent = ' '+': '+grid_four_count+' '+(grid_four_count != 1 ? 's' : ''); + span.innerText = span.textContent = " "+': '+grid_four_count+" "+(grid_four_count != 1 ? 's' : ''); var maidenhead = L.maidenhead().addTo(map); @@ -1589,7 +1589,7 @@ $(document).ready(function(){ uri->segment(1) == "activated_grids" && $this->uri->segment(2) == "band") { ?> var bands_available = ; - $('#gridsquare_bands').append('') + $('#gridsquare_bands').append('') $.each(bands_available, function(key, value) { $('#gridsquare_bands') .append($("") @@ -2113,9 +2113,9 @@ function viewQsl(picture, callsign) { textAndPic.append(''); var title = ''; if (callsign == null) { - title = ''; + title = ""; } else { - title = '' + callsign.replace('0', 'Ø'); + title = "" + callsign.replace('0', 'Ø'); } BootstrapDialog.show({ @@ -2134,8 +2134,8 @@ function viewQsl(picture, callsign) {