mirror of
https://github.com/grocy/grocy.git
synced 2026-10-16 21:00:04 +02:00
Streamline bootstrap-combobox clear handling (this now closes #2942)
This commit is contained in:
parent
b3fbb387ca
commit
d2b8d55803
|
|
@ -71,7 +71,7 @@ $('#battery_id').on('change', function (e)
|
|||
}
|
||||
});
|
||||
|
||||
$(".combobox").combobox(Object.assign(BootstrapComboboxDefaults, { "clearIfNoMatch": false }));
|
||||
$(".combobox").combobox(BootstrapComboboxDefaults);
|
||||
|
||||
$('#battery_id').val('');
|
||||
$('#battery_id_text_input').val('');
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ $('#chore_id').on('change', function (e)
|
|||
}
|
||||
});
|
||||
|
||||
$(".combobox").combobox(Object.assign(BootstrapComboboxDefaults, { "clearIfNoMatch": false }));
|
||||
$(".combobox").combobox(BootstrapComboboxDefaults);
|
||||
|
||||
$('#chore_id_text_input').trigger('change');
|
||||
Grocy.Components.DateTimePicker.GetInputElement().trigger('input');
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ Grocy.Components.ProductPicker.Enable = function ()
|
|||
$("#camerabarcodescanner-start-button").removeClass("disabled");
|
||||
}
|
||||
|
||||
$(".product-combobox").combobox(Object.assign(BootstrapComboboxDefaults, { "clearIfNoMatch": false }));
|
||||
$(".product-combobox").combobox(BootstrapComboboxDefaults);
|
||||
|
||||
var prefillProduct = GetUriParam('product-name');
|
||||
var prefillProduct2 = Grocy.Components.ProductPicker.GetPicker().parent().data('prefill-by-name').toString();
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ Grocy.Components.RecipePicker.Clear = function ()
|
|||
Grocy.Components.RecipePicker.SetId(null);
|
||||
}
|
||||
|
||||
$(".recipe-combobox").combobox(Object.assign(BootstrapComboboxDefaults, { "clearIfNoMatch": false }));
|
||||
$(".recipe-combobox").combobox(BootstrapComboboxDefaults);
|
||||
|
||||
var prefillByName = Grocy.Components.RecipePicker.GetPicker().parent().data('prefill-by-name').toString();
|
||||
if (typeof prefillByName !== "undefined")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user