From 32c562bbe0383fe50a65aed7a18f82336e6d53c7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 31 Jan 2018 13:47:46 -0300 Subject: [PATCH] Bug 20115: Make the prefs sortable If we depend on the order, we should make it sortable. I let the customization to someone else (we would need an icon to tell the user it's sortable). Something does not work here: If fr-FR and fr-CA is installed, but only 1 is ticked, it will be considered as last. I do not think it's a blocker as it does not make really make sense to have it installed but not used (the interface is also weird, there is a dropdown list with only 1 entry) Signed-off-by: Jesse Maseto Signed-off-by: Josef Moravec Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt index b381d2a4f1..ef4cd66b2a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt @@ -104,8 +104,9 @@ [% END %] [% ELSIF ( CHUNK.type_languages ) %] -
+
[% FOREACH language IN CHUNK.languages %] +
[% IF ( language.plural ) %]
[% IF ( language.native_description ) %][% language.native_description %][% ELSE %][% language.rfc4646_subtag %][% END %] @@ -130,6 +131,7 @@ [% END %]
[% END %] +
[% END %]
[% END %] @@ -160,6 +162,7 @@ });[% END %] $(document).ready(function(){ + $("dl.sortable").sortable(); $("select[multiple='multiple']").multipleSelect( { placeholder: _("Please select ..."), selectAllText: _("Select all"), -- 2.39.5