mirror of
https://github.com/rickbarrette/redmine_qbo_lineitems.git
synced 2026-04-02 07:01:59 -04:00
Added QBO Item support with autocomplete
This commit is contained in:
@@ -22,7 +22,11 @@
|
||||
Date.now().toString()
|
||||
);
|
||||
|
||||
//container.insertAdjacentHTML("beforeend", content);
|
||||
container.insertAdjacentHTML("beforeend", content);
|
||||
|
||||
// initialize autocomplete on the new row
|
||||
initLineItemAutocomplete(container.lastElementChild);
|
||||
}
|
||||
|
||||
// REMOVE
|
||||
@@ -50,4 +54,11 @@
|
||||
|
||||
// Works for Turbo navigation
|
||||
document.addEventListener("turbo:load", initNestedForms);
|
||||
})();
|
||||
})();
|
||||
|
||||
$(document).on("input", ".line-item-description", function(){
|
||||
|
||||
let row = $(this).closest(".line-item");
|
||||
row.find(".item-id-field").val("");
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user