mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-09 05:37:36 +08:00
Fix stock modal add/remove value preset value [SCI-6740]
This commit is contained in:
parent
42605e1a8a
commit
1be5ba9dd0
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,6 @@ var RepositoryStockValues = (function() {
|
||||||
|
|
||||||
dropdownSelector.selectValues(UNIT_SELECTOR, $('#initial_units').val());
|
dropdownSelector.selectValues(UNIT_SELECTOR, $('#initial_units').val());
|
||||||
$('#operator').val($(this).data('operator'));
|
$('#operator').val($(this).data('operator'));
|
||||||
|
|
||||||
switch ($(this).data('operator')) {
|
switch ($(this).data('operator')) {
|
||||||
case 'set':
|
case 'set':
|
||||||
dropdownSelector.enableSelector(UNIT_SELECTOR);
|
dropdownSelector.enableSelector(UNIT_SELECTOR);
|
||||||
|
|
@ -175,6 +174,7 @@ var RepositoryStockValues = (function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
$manageModal.modal('show');
|
$manageModal.modal('show');
|
||||||
|
amountChanged = false;
|
||||||
$('#stock-input-amount').focus();
|
$('#stock-input-amount').focus();
|
||||||
$('#stock-input-amount')[0].selectionStart = $('#stock-input-amount')[0].value.length;
|
$('#stock-input-amount')[0].selectionStart = $('#stock-input-amount')[0].value.length;
|
||||||
$('#stock-input-amount')[0].selectionEnd = $('#stock-input-amount')[0].value.length;
|
$('#stock-input-amount')[0].selectionEnd = $('#stock-input-amount')[0].value.length;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue