mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-22 17:40:03 +00:00
Cleaned up to make comments english
This commit is contained in:
parent
f3ffab92ef
commit
40735699e1
@ -2,40 +2,40 @@
|
|||||||
// Admin Menu - Version Dialog Settings
|
// Admin Menu - Version Dialog Settings
|
||||||
|
|
||||||
function showCustomTextarea() {
|
function showCustomTextarea() {
|
||||||
var selectedOptionValue = $("#version_dialog_mode option:selected").val();
|
var selectedOptionValue = $("#version_dialog_mode option:selected").val();
|
||||||
|
|
||||||
if (selectedOptionValue === "custom_text" || selectedOptionValue === "both") {
|
if (selectedOptionValue === "custom_text" || selectedOptionValue === "both") {
|
||||||
$('#version_dialog_custom_textarea').show();
|
$('#version_dialog_custom_textarea').show();
|
||||||
} else {
|
} else {
|
||||||
$('#version_dialog_custom_textarea').hide();
|
$('#version_dialog_custom_textarea').hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
showCustomTextarea();
|
showCustomTextarea();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#version_dialog_mode').on('change', function () {
|
$('#version_dialog_mode').on('change', function () {
|
||||||
showCustomTextarea();
|
showCustomTextarea();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// JavaScript-Funktion displayVersionDialog für Bootstrap 5
|
// JavaScript function displayVersionDialog for Bootstrap 5
|
||||||
function displayVersionDialog() {
|
function displayVersionDialog() {
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: base_url + "index.php/Version_Dialog/displayVersionDialog",
|
url: base_url + "index.php/Version_Dialog/displayVersionDialog",
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType: 'html',
|
dataType: 'html',
|
||||||
success: function(data) {
|
success: function (data) {
|
||||||
$('body').append(data);
|
$('body').append(data);
|
||||||
|
|
||||||
// Aktiviere das Bootstrap-Modal
|
// Activate the Bootstrap Modal
|
||||||
var versionDialogModal = new bootstrap.Modal(document.getElementById('versionDialogModal'));
|
var versionDialogModal = new bootstrap.Modal(document.getElementById('versionDialogModal'));
|
||||||
versionDialogModal.show();
|
versionDialogModal.show();
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function () {
|
||||||
// Behandlung von Fehlern
|
// Handling of errors
|
||||||
console.log('Fehler beim Laden der PHP-Datei.');
|
console.log('Fehler beim Laden der PHP-Datei.');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user