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 729-736 Link Here
729
                                                                    </select>
729
                                                                    </select>
730
                                                                [% ELSIF ( mv.type == 'text1' ) %]
730
                                                                [% ELSIF ( mv.type == 'text1' ) %]
731
                                                                    <input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" />
731
                                                                    <input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" />
732
                                                                [% ELSIF ( mv.type == 'text2' ) %]
732
                                                                [% ELSIF ( mv.type == 'text2' ) # plugin %]
733
                                                                    <input type="text" id="[%- mv.id | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" />
733
                                                                    <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" />
734
                                                                [% ELSIF ( mv.type == 'text' ) %]
734
                                                                [% ELSIF ( mv.type == 'text' ) %]
735
                                                                    <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 -%]" />
735
                                                                    <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 -%]" />
736
                                                                [% ELSIF ( mv.type == 'textarea' ) %]
736
                                                                [% ELSIF ( mv.type == 'textarea' ) %]
Lines 755-761 Link Here
755
                                                                    [% IF mv.noclick %]
755
                                                                    [% IF mv.noclick %]
756
                                                                        <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a>
756
                                                                        <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a>
757
                                                                    [% ELSE %]
757
                                                                    [% ELSE %]
758
                                                                        <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor" data-plugin="[% mv.plugin | html %]">...</a>
758
                                                                        <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor framework_plugin" title="Tag editor" data-plugin="[% mv.plugin | html %]">...</a>
759
                                                                    [% END %]
759
                                                                    [% END %]
760
                                                                    [% mv.javascript | $raw %]
760
                                                                    [% mv.javascript | $raw %]
761
                                                                [% END #/IF ( mv.type == 'text1' ) %]
761
                                                                [% END #/IF ( mv.type == 'text1' ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt (-3 / +3 lines)
Lines 481-489 Link Here
481
            var res = '[% Koha.Preference('OPACBaseURL') | html %]';
481
            var res = '[% Koha.Preference('OPACBaseURL') | html %]';
482
            res = res.replace( /\/$/, '');
482
            res = res.replace( /\/$/, '');
483
            res = res + '/cgi-bin/koha/opac-retrieve-file.pl?id=' + hashval;
483
            res = res + '/cgi-bin/koha/opac-retrieve-file.pl?id=' + hashval;
484
            [% IF index %]
484
            var index = '[% index | html %]';
485
                $(window.opener.document).find('#[% index | html %]').val( res );
485
            index = index.replace( /^buttonDot_/, '' );
486
            [% END %]
486
            if(index) $(window.opener.document).find('#'+index).val( res );
487
            window.close();
487
            window.close();
488
        }
488
        }
489
        var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'upload', 'uploadresults', 'json' ) | $raw %];
489
        var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'upload', 'uploadresults', 'json' ) | $raw %];
(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js (-2 / +1 lines)
Lines 821-827 $(document).ready(function() { Link Here
821
        const plugin = event.target.getAttribute('data-plugin');
821
        const plugin = event.target.getAttribute('data-plugin');
822
        if (plugin && plugin in Koha.frameworkPlugins && event.type in Koha.frameworkPlugins[plugin]) {
822
        if (plugin && plugin in Koha.frameworkPlugins && event.type in Koha.frameworkPlugins[plugin]) {
823
            event.data = {};
823
            event.data = {};
824
            if (event.target.classList.contains('buttonDot')) {
824
            if (event.target.classList.contains('framework_plugin') || event.target.classList.contains('buttonDot') ) {
825
                event.data.id = event.target.closest('.subfield_line').querySelector('input.input_marceditor').id;
825
                event.data.id = event.target.closest('.subfield_line').querySelector('input.input_marceditor').id;
826
            } else {
826
            } else {
827
                event.data.id = event.target.id;
827
                event.data.id = event.target.id;
828
- 

Return to bug 30975