From dcd03155da8cfc756bf12166233623245b21b770 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 --- 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 b381d2a..ef4cd66 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.1.4