mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-27 10:08:11 +08:00
Merge pull request #3521 from artoscinote/ma_SCI_6022
Fix barcode scanning in modals [SCI-6022]
This commit is contained in:
commit
35874d6a93
2 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
$(document).on('click', '.barcode-scanner', function() {
|
||||
var search = $('.search-container .search-field');
|
||||
var input = $('<input>').attr('type', 'text').css('opacity', 0).appendTo('body');
|
||||
var input = $('<input>').attr('type', 'text').css({ position: 'absolute', right: 0, opacity: 0 })
|
||||
.appendTo($('.search-container').parent());
|
||||
search.val('');
|
||||
search.attr('disabled', true).addClass('barcode-mode');
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
</p>
|
||||
</div>
|
||||
<div class="col-md-4 bar-code-container">
|
||||
<canvas id="bar-code-canvas" class="hidden" data-id="<%= @repository_row.parent_id || @repository_row.id %>"></canvas>
|
||||
<canvas id="bar-code-canvas" class="hidden" data-id="<%= @repository_row.code %>"></canvas>
|
||||
<img id="bar-code-image"></img>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue