From bb25685691a498d823f8c212bca130226955a882 Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Sun, 28 Jan 2024 22:07:47 +1100 Subject: [PATCH] Sponsorship auto-generate v0.1.38 --- .github/workflows/update_sponsors.yml | 2 +- front/maintenance.php | 123 ++++++++++++++++++++++++++ update_sponsors.py | 21 ++--- 3 files changed, 135 insertions(+), 11 deletions(-) diff --git a/.github/workflows/update_sponsors.yml b/.github/workflows/update_sponsors.yml index 1551f2a4..47fb3aef 100755 --- a/.github/workflows/update_sponsors.yml +++ b/.github/workflows/update_sponsors.yml @@ -2,7 +2,7 @@ name: Update Sponsors on: schedule: - - cron: '50 10 * * *' # Set your preferred schedule (UTC) + - cron: '10 11 * * *' # Set your preferred schedule (UTC) jobs: update-readme: diff --git a/front/maintenance.php b/front/maintenance.php index aa429c50..2ee6004a 100755 --- a/front/maintenance.php +++ b/front/maintenance.php @@ -852,6 +852,129 @@ $(function () { }); }); +// $(function () { +// var selectEl = $('.select2').select2(); + +// selectEl.next().children().children().children().sortable({ +// containment: 'parent', +// stop: function (event, ui) { +// ui.item.parent().children('[title]').each(function () { +// var title = $(this).attr('title'); +// var original = $('option:contains(' + title + ')', selectEl).first(); + +// // Clear any previous data associated with the element +// original.removeData(); + +// original.detach(); +// selectEl.append(original); +// }); + +// // Trigger change event on Select2 +// selectEl.trigger('change'); +// } +// }); +// }); + + +// $(function () { +// var selectEl = $('.select2').select2(); + +// selectEl.next().children().children().children().sortable({ +// containment: 'parent', +// stop: function (event, ui) { +// // Remove all options from selectEl +// selectEl.children().remove(); + +// // Rebuild options based on the sorted order +// ui.item.parent().children('[title]').each(function () { +// var title = $(this).attr('title'); +// var original = $('option:contains(' + title + ')', selectEl).first(); + +// original.removeData(); +// selectEl.append(original); +// }); + +// // Trigger change event on Select2 +// selectEl.trigger('change'); +// } +// }); +// }); + +// $(function () { +// var selectEl = $('.select2').select2(); + +// selectEl.next().children().children().children().sortable({ +// containment: 'parent', +// stop: function (event, ui) { +// var sortedOptions = []; + +// // Build an array of sorted option values +// ui.item.parent().children('[title]').each(function () { +// var title = $(this).attr('title'); +// sortedOptions.push(selectEl.find('option:contains(' + title + ')').val()); +// }); + +// // Remove all options from selectEl +// selectEl.empty(); + +// // Rebuild options based on the sorted order +// $.each(sortedOptions, function (index, value) { +// var option = selectEl.find('option[value="' + value + '"]'); +// selectEl.append(option); +// }); + +// // Trigger change event on Select2 +// selectEl.trigger('change'); +// } +// }); +// }); + +// $(function () { +// var selectEl = $('.select2').select2(); + +// selectEl.next().children().children().children().sortable({ +// containment: 'parent', +// stop: function (event, ui) { +// var sortedOptions = ui.item.parent().children('[title]').map(function () { +// var title = $(this).attr('title'); +// return selectEl.find('option:contains(' + title + ')').prop('outerHTML'); +// }).get().join(''); + +// // Replace all options in selectEl +// selectEl.html(sortedOptions); + +// // Trigger change event on Select2 +// selectEl.trigger('change'); +// } +// }); +// }); + +// $(function () { +// var selectEl = $('.select2').select2(); + +// selectEl.next().children().children().children().sortable({ +// containment: 'parent', +// stop: function (event, ui) { +// var sortedOptions = selectEl.find('option').map(function () { +// var title = $(this).text(); +// var isSelected = $(this).is(':selected'); +// var newOption = $('