Bug 35194: Remove obsoleted sortable function

Removes two occurrences and a commented one.

Test plan:
[1] Go to cataloguing editor. Open dev console. Clone 500.
[2] Go to Admin/Did you mean. Try to toggle options.

With this patch it works. Without this patch, JS errors.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Marcel de Rooy 2023-11-09 10:35:06 +00:00 committed by Tomas Cohen Arazi
parent 9e9fa64d5a
commit 6815af3feb
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
3 changed files with 0 additions and 4 deletions

View file

@ -93,7 +93,6 @@
[% Asset.js("js/admin-menu.js") | $raw %]
<script>
$(document).ready(function() {
$( ".pluginlist" ).sortable();
$( ".plugin" ).addClass( "ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" )
.find( ".pluginname" )
.addClass( "ui-widget-header ui-corner-all" )

View file

@ -324,8 +324,6 @@ function CloneField(index, hideMarc, advancedMARCEditor) {
// insert this line on the page
original.parentNode.insertBefore(clone,original.nextSibling);
$("ul.sortable_subfield", clone).sortable();
Select2Utils.initSelect2($(original).find('select'));
Select2Utils.initSelect2($(clone).find('select'));
}

View file

@ -59,7 +59,6 @@ $(document).ready(function() {
$('#ajax_saving_icon').hide();
$('#ajax_failed_icon').show();
$('#ajax_failed_msg').show();
// $('#sortable_stages').sortable('cancel');
})
.always(function() {
sortable_stages.option("disabled", false );