grocy/js/components/shoppinglocationpicker.js
2021-06-23 23:38:59 +02:00

18 lines
404 B
JavaScript

import BasePicker from "./BasePicker";
class shoppinglocationpicker extends BasePicker
{
constructor(Grocy, scopeSelector = null)
{
super(Grocy, "#shopping_location_id", scopeSelector);
this.picker = this.$(this.basename);
this.input_element = this.$(this.basename + '_text_input');
this.initCombobox('.shopping-location-combobox');
this.prefill();
}
}
export { shoppinglocationpicker }