View | Details | Raw Unified | Return to bug 38895
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/widget.js (-3 / +4 lines)
Lines 69-75 define( [ 'resources' ], function( Resources ) { Link Here
69
69
70
                function show() {
70
                function show() {
71
                    $collapsed.hide();
71
                    $collapsed.hide();
72
                    $node.val( widget.getFixed( start, end ).replace(/\s+$/, '') );
72
                    if ( end - start > 1 ) {
73
                        $node.val( widget.getFixed( start, end ).replace(/\s+$/, '') );
74
                    }
73
                    $node.show();
75
                    $node.show();
74
                    $node[0].focus();
76
                    $node[0].focus();
75
                }
77
                }
Lines 161-167 define( [ 'resources' ], function( Resources ) { Link Here
161
                        $input = $( '<select name="f' + Widget.PadNum(start, 2) + '" title="' + $(this).children('name').text() + '"></select>' );
163
                        $input = $( '<select name="f' + Widget.PadNum(start, 2) + '" title="' + $(this).children('name').text() + '"></select>' );
162
164
163
                        $values.each( function() {
165
                        $values.each( function() {
164
                            $input.append( '<option value="' + $(this).attr('code') + '">' + $(this).attr('code') + ' - ' + $(this).children('description').text() + '</option>' );
166
                            $input.append( '<option value="' + $(this).attr('code').replace('#', ' ') + '">' + $(this).attr('code') + ' - ' + $(this).children('description').text() + '</option>' );
165
                        } );
167
                        } );
166
                    }
168
                    }
167
169
168
- 

Return to bug 38895