Skip to content
Snippets Groups Projects
Commit 005e9f5a authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

unify usage of jQuery, re #993

parent 762bcf75
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
...@@ -7,8 +7,8 @@ $(document).on('click', 'a[data-qr-code]', function (event) { ...@@ -7,8 +7,8 @@ $(document).on('click', 'a[data-qr-code]', function (event) {
STUDIP.ready((event) => { STUDIP.ready((event) => {
$(document).on('click', '#qr_code .PrintAction', () => { $(document).on('click', '#qr_code .PrintAction', () => {
// We must hide the other page elements for the print view functionality. // We must hide the other page elements for the print view functionality.
jQuery('#layout_wrapper').addClass('print-qrcode').hide(); $('#layout_wrapper').addClass('print-qrcode').hide();
jQuery('#qr_code').addClass('print-view'); $('#qr_code').addClass('print-view');
// Now we can print: // Now we can print:
window.print(); window.print();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment