Bug 35245: Set default width for select2 in authorities
Test plan: 1) Edit a authority Marc framework, e.g. 'CHRON_TERM', visit: /cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=CHRON_TERM 2) Pick any field to turn into a AV field, e.g. 371, and edit its subfields: /cgi-bin/koha/admin/auth_subfields_structure.pl?tagfield=371&authtypecode=CHRON_TERM 3) Pick a subfield e.g. 'd' and click edit, visit: /cgi-bin/koha/admin/auth_subfields_structure.pl?op=add_form&tagfield=371&tagsubfield=d&authtypecode=CHRON_TERM#subdfield 4) Pick a Authorized value list e.g. DEPARTMENT, click Submit 5) Create a new authority of the same type 'CHRON_TERM', visit: /cgi-bin/koha/authorities/authorities.pl?authtypecode=CHRON_TERM 6) Click on Tab '3' and click on field 371 ADDRESS to expand it 7) Notice field 'd' select2 width is very narrow 8) Apply patch. Repeat. Notice its not narrow anymore Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commitf918c3ff80
) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commitc577710c40
) Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
This commit is contained in:
parent
156ab3c738
commit
9de53eb9af
1 changed files with 2 additions and 1 deletions
|
@ -5,14 +5,15 @@
|
|||
<title>[% IF ( authid ) %]Modify authority #[% authid | html %] ([% authtypetext | html %])[% ELSE %]Adding authority ([% authtypetext | html %])[% END %] › Authorities › Koha</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
[% Asset.js("lib/hc-sticky.js") | $raw %]
|
||||
[% INCLUDE 'select2.inc' %]
|
||||
<script>
|
||||
[% IF Koha.Preference('CreateAVFromCataloguing') && CAN_user_parameters_manage_auth_values %]
|
||||
var auth_values_creation = 1;
|
||||
[% ELSE %]
|
||||
var auth_values_creation = 0;
|
||||
[% END %]
|
||||
$.fn.select2.defaults.set("width", "100%" );
|
||||
</script>
|
||||
[% INCLUDE 'select2.inc' %]
|
||||
[% Asset.js("js/cataloging.js") | $raw %]
|
||||
|
||||
<script>
|
||||
|
|
Loading…
Reference in a new issue