mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 13:12:13 +08:00
Stock small ux fixes [SCI-6714] (#4015)
Co-authored-by: Anton <anton@scinote.net>
This commit is contained in:
parent
04ab92b8e2
commit
36639727a1
2 changed files with 4 additions and 4 deletions
|
@ -956,9 +956,9 @@ var dropdownSelector = (function() {
|
|||
if ($selector.length === 0) return false;
|
||||
|
||||
valuesArray.forEach(function(value) {
|
||||
option = $selector.find(`option[value="${value}"]`)[0];
|
||||
option.selected = 'selected';
|
||||
options.push(convertOptionToJson(option));
|
||||
option = $selector.find(`option[value="${value}"]`);
|
||||
option.attr('selected', true);
|
||||
options.push(convertOptionToJson(option[0]));
|
||||
});
|
||||
setData($selector, options);
|
||||
return this;
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
data-current-amount="<%= repository_stock_value.amount %>"
|
||||
data-decimals="<%= repository_stock_column.metadata['decimals'] %>"
|
||||
value="<%= repository_stock_value.formatted_value %>"
|
||||
placeholder="<%= t("repository_stock_values.manage_modal.amount_placeholder#{repository_stock_value.new_record? ? '_new' : ''}") %>"
|
||||
placeholder="<%= t("repository_stock_values.manage_modal.amount_placeholder_new") %>"
|
||||
required />
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue