further refactorings, got rid of init.js

This commit is contained in:
azivner
2018-03-26 22:29:14 -04:00
parent 57d19f3302
commit 788ac43ad1
10 changed files with 264 additions and 226 deletions

View File

@@ -170,7 +170,7 @@ $(document).on('focus', '.label-name', function (e) {
if (!$(this).hasClass("ui-autocomplete-input")) {
$(this).autocomplete({
// shouldn't be required and autocomplete should just accept array of strings, but that fails
// because we have overriden filter() function in init.js
// because we have overriden filter() function in autocomplete.js
source: labelNames.map(attr => {
return {
label: attr,
@@ -200,7 +200,7 @@ $(document).on('focus', '.label-value', async function (e) {
$(this).autocomplete({
// shouldn't be required and autocomplete should just accept array of strings, but that fails
// because we have overriden filter() function in init.js
// because we have overriden filter() function in autocomplete.js
source: labelValues.map(attr => {
return {
label: attr,