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

(-)a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js (-2 lines)
Lines 204-211 define( [ 'marc-record', 'koha-backend', 'preferences', 'text-marc', 'widget' ], Link Here
204
204
205
        'Ctrl-D': function( cm ) {
205
        'Ctrl-D': function( cm ) {
206
            // Insert subfield delimiter
206
            // Insert subfield delimiter
207
            // This will be extended later to allow either a configurable subfield delimiter or just
208
            // make it be the double cross.
209
            var cur = cm.getCursor();
207
            var cur = cm.getCursor();
210
208
211
            cm.replaceRange( "‡", cur, null );
209
            cm.replaceRange( "‡", cur, null );
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc (-1 / +8 lines)
Lines 531-537 require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Link Here
531
            pages.push( ' <li><a class="search-nav" href="#" data-offset="' + (data.offset + data.page_size) + '">' + _("Next") + ' &raquo;</a></li>' );
531
            pages.push( ' <li><a class="search-nav" href="#" data-offset="' + (data.offset + data.page_size) + '">' + _("Next") + ' &raquo;</a></li>' );
532
        }
532
        }
533
533
534
        if ( pages.length > 1 ) $( '#search-top-pages, #search-bottom-pages' ).find( '.pagination' ).html( '<ul>' + pages.join( '' ) + '</ul>');
534
        $( '#search-top-pages, #search-bottom-pages' ).find( '.pagination' ).html( pages.length > 1 ? ( '<ul>' + pages.join( '' ) + '</ul>' ) : '' );
535
535
536
        var $overlay = $('#search-overlay');
536
        var $overlay = $('#search-overlay');
537
        $overlay.find('span').text(_("Loading"));
537
        $overlay.find('span').text(_("Loading"));
Lines 778-783 require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Link Here
778
            macroEditor = CodeMirror(
778
            macroEditor = CodeMirror(
779
                $('#macro-editor')[0],
779
                $('#macro-editor')[0],
780
                {
780
                {
781
                    extraKeys: {
782
                        'Ctrl-D': function( cm ) {
783
                            var cur = cm.getCursor();
784
785
                            cm.replaceRange( "‡", cur, null );
786
                        },
787
                    },
781
                    mode: 'null',
788
                    mode: 'null',
782
                    lineNumbers: true,
789
                    lineNumbers: true,
783
                }
790
                }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt (-4 / +3 lines)
Lines 229-235 Link Here
229
    </div>
229
    </div>
230
</div>
230
</div>
231
231
232
<div id="shortcuts-contents">
232
</div>
233
234
<div id="shortcuts-contents" style="display: none">
233
<table class="table table-condensed">
235
<table class="table table-condensed">
234
    <thead>
236
    <thead>
235
        <tr>
237
        <tr>
Lines 278-285 Link Here
278
</table>
280
</table>
279
</div>
281
</div>
280
282
281
</div>
282
283
[% PROCESS 'cateditor-ui.inc' %]
283
[% PROCESS 'cateditor-ui.inc' %]
284
284
285
[% INCLUDE 'intranet-bottom.inc' %]
285
[% INCLUDE 'intranet-bottom.inc' %]
286
- 

Return to bug 11559