version dialog js
这个提交包含在:
父节点
5559673fe5
当前提交
0ba6a04454
共有 1 个文件被更改,包括 25 次插入 和 14 次删除
|
|
@ -19,19 +19,30 @@ $('#version_dialog_mode').on('change', function () {
|
||||||
showCustomTextarea();
|
showCustomTextarea();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// JavaScript-Funktion displayVersionDialog für Bootstrap 5
|
||||||
function displayVersionDialog() {
|
function displayVersionDialog() {
|
||||||
BootstrapDialog.show({
|
|
||||||
title: 'Stored Queries',
|
$.ajax({
|
||||||
type: BootstrapDialog.TYPE_WARNING,
|
url: base_url + "index.php/Version_Dialog/displayVersionDialog",
|
||||||
size: BootstrapDialog.SIZE_NORMAL,
|
type: 'GET',
|
||||||
cssClass: 'queries-dialog',
|
dataType: 'html',
|
||||||
nl2br: false,
|
success: function(data) {
|
||||||
message: 'You need to make a query before you search!',
|
$('body').append(data);
|
||||||
buttons: [{
|
|
||||||
label: lang_admin_close,
|
// Aktiviere das Bootstrap-Modal
|
||||||
action: function(dialogItself) {
|
var versionDialogModal = new bootstrap.Modal(document.getElementById('versionDialogModal'));
|
||||||
dialogItself.close();
|
versionDialogModal.show();
|
||||||
|
},
|
||||||
|
error: function() {
|
||||||
|
// Behandlung von Fehlern
|
||||||
|
console.log('Fehler beim Laden der PHP-Datei.');
|
||||||
}
|
}
|
||||||
}]
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function dismissVersionDialog() {
|
||||||
|
$.ajax({
|
||||||
|
url: base_url + 'index.php/user_options/dismissVersionDialog',
|
||||||
|
method: 'POST',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
正在加载…
在新工单中引用