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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt (-3 / +3 lines)
Lines 732-739 Link Here
732
                                                                    </select>
732
                                                                    </select>
733
                                                                [% ELSIF ( mv.type == 'text1' ) %]
733
                                                                [% ELSIF ( mv.type == 'text1' ) %]
734
                                                                    <input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" />
734
                                                                    <input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" />
735
                                                                [% ELSIF ( mv.type == 'text2' ) %]
735
                                                                [% ELSIF ( mv.type == 'text2' ) # plugin %]
736
                                                                    <input type="text" id="[%- mv.id | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" />
736
                                                                    <input type="text" id="[%- mv.id | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" data-plugin="[% mv.plugin | html %]" class="input_marceditor framework_plugin" />
737
                                                                [% ELSIF ( mv.type == 'text' ) %]
737
                                                                [% ELSIF ( mv.type == 'text' ) %]
738
                                                                    <input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" size="67" maxlength="[%- mv.maxlength | html -%]" />
738
                                                                    <input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" size="67" maxlength="[%- mv.maxlength | html -%]" />
739
                                                                [% ELSIF ( mv.type == 'textarea' ) %]
739
                                                                [% ELSIF ( mv.type == 'textarea' ) %]
Lines 758-764 Link Here
758
                                                                    [% IF mv.noclick %]
758
                                                                    [% IF mv.noclick %]
759
                                                                        <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a>
759
                                                                        <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a>
760
                                                                    [% ELSE %]
760
                                                                    [% ELSE %]
761
                                                                        <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor" data-plugin="[% mv.plugin | html %]">...</a>
761
                                                                        <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor framework_plugin" title="Tag editor" data-plugin="[% mv.plugin | html %]">...</a>
762
                                                                    [% END %]
762
                                                                    [% END %]
763
                                                                    [% mv.javascript | $raw %]
763
                                                                    [% mv.javascript | $raw %]
764
                                                                [% END #/IF ( mv.type == 'text1' ) %]
764
                                                                [% END #/IF ( mv.type == 'text1' ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt (-3 / +3 lines)
Lines 475-483 Link Here
475
            var res = '[% Koha.Preference('OPACBaseURL') | html %]';
475
            var res = '[% Koha.Preference('OPACBaseURL') | html %]';
476
            res = res.replace( /\/$/, '');
476
            res = res.replace( /\/$/, '');
477
            res = res + '/cgi-bin/koha/opac-retrieve-file.pl?id=' + hashval;
477
            res = res + '/cgi-bin/koha/opac-retrieve-file.pl?id=' + hashval;
478
            [% IF index %]
478
            var index = '[% index | html %]';
479
                $(window.opener.document).find('#[% index | html %]').val( res );
479
            index = index.replace( /^buttonDot_/, '' );
480
            [% END %]
480
            if(index) $(window.opener.document).find('#'+index).val( res );
481
            window.close();
481
            window.close();
482
        }
482
        }
483
        var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'upload', 'uploadresults', 'json' ) | $raw %];
483
        var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'upload', 'uploadresults', 'json' ) | $raw %];
(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js (-2 / +1 lines)
Lines 629-635 $(document).ready(function() { Link Here
629
        const plugin = event.target.getAttribute('data-plugin');
629
        const plugin = event.target.getAttribute('data-plugin');
630
        if (plugin && plugin in Koha.frameworkPlugins && event.type in Koha.frameworkPlugins[plugin]) {
630
        if (plugin && plugin in Koha.frameworkPlugins && event.type in Koha.frameworkPlugins[plugin]) {
631
            event.data = {};
631
            event.data = {};
632
            if (event.target.classList.contains('buttonDot')) {
632
            if (event.target.classList.contains('framework_plugin') || event.target.classList.contains('buttonDot') ) {
633
                event.data.id = event.target.closest('.subfield_line').querySelector('input.input_marceditor').id;
633
                event.data.id = event.target.closest('.subfield_line').querySelector('input.input_marceditor').id;
634
            } else {
634
            } else {
635
                event.data.id = event.target.id;
635
                event.data.id = event.target.id;
636
- 

Return to bug 30975