v8.2: Remove unused intro.js templates and mappings

Deleted the admin introduction script and associated source map since they are no longer required. This cleanup helps to reduce clutter and improve maintainability of the project.
This commit is contained in:
Aidaho
2024-10-03 14:37:04 +03:00
parent f6298cd911
commit 82662042e3
17 changed files with 121 additions and 569 deletions

View File

@@ -227,6 +227,37 @@ function openSection(section) {
$(section_id + ' select[name="server"]').val(data.server_id).change();
$(section_id + ' select[name="server"]').selectmenu('disable').parent().parent().hide();
$(section_id + ' input[name="name"]').prop("readonly", true).parent().parent().hide();
let buttons = [{
text: edit_word,
click: function () {
editProxy('add-' + section_type, $(this));
}
}, {
text: delete_word,
click: function () {
confirmDeleteSection(section_type, section_name, $('#serv').val(), $(this));
}
}, {
text: cancel_word,
click: function () {
$(this).dialog("close");
$('#edit-' + section_type).hide();
}
}]
if (section_type === 'defaults' || section_type === 'global') {
buttons = [{
text: edit_word,
click: function () {
editProxy('add-' + section_type, $(this));
}
}, {
text: cancel_word,
click: function () {
$(this).dialog("close");
$('#edit-' + section_type).hide();
}
}]
}
$("#edit-section").dialog({
resizable: false,
height: "auto",
@@ -236,25 +267,7 @@ function openSection(section) {
close: function () {
$('#edit-' + section_type).hide();
},
buttons: [{
text: edit_word,
click: function () {
editProxy('add-' + section_type, $(this));
}
}, {
text: delete_word,
click: function () {
delete_section(section_type, section_name, $('#serv').val());
$(this).dialog("close");
$('#edit-' + section_type).hide();
}
}, {
text: cancel_word,
click: function () {
$(this).dialog("close");
$('#edit-' + section_type).hide();
}
}]
buttons: buttons
});
}
});
@@ -622,3 +635,25 @@ function getFormData($form, form_name) {
}
return indexed_array;
}
function confirmDeleteSection(section_type, section_name, serv_val, dialog_id) {
$( "#dialog-confirm" ).dialog({
resizable: false,
height: "auto",
width: 400,
modal: true,
title: delete_word + " " + section_name + "?",
buttons: [{
text: delete_word,
click: function () {
$(this).dialog("close");
delete_section(section_type, section_name, serv_val);
dialog_id.dialog("close");
}
}, {
text: cancel_word,
click: function () {
$(this).dialog("close");
}
}]
});
}