Cloudlog/assets/js/sections/version_dialog.js

37 行
899 B
JavaScript

2023-12-03 16:37:39 +08:00
// Admin Menu - Version Dialog Settings
function showCustomTextarea() {
var selectedOptionValue = $("#version_dialog_mode option:selected").val();
if (selectedOptionValue === "custom_text" || selectedOptionValue === "both") {
$('#version_dialog_custom_textarea').show();
} else {
$('#version_dialog_custom_textarea').hide();
}
}
$(document).ready(function () {
showCustomTextarea();
});
$('#version_dialog_mode').on('change', function () {
showCustomTextarea();
});
2023-12-04 04:29:22 +08:00
function displayVersionDialog() {
BootstrapDialog.show({
title: 'Stored Queries',
type: BootstrapDialog.TYPE_WARNING,
size: BootstrapDialog.SIZE_NORMAL,
cssClass: 'queries-dialog',
nl2br: false,
message: 'You need to make a query before you search!',
buttons: [{
label: lang_admin_close,
action: function(dialogItself) {
dialogItself.close();
}
}]
});
}