Fix #1843 (get path to script via html file and known js file instead of randomly picking last one)

This commit is contained in:
Ozzie Isaacs
2021-01-31 19:01:34 +01:00
parent a866dbaa80
commit 1e5af21000
3 changed files with 20 additions and 26 deletions

View File

@ -78,10 +78,10 @@ function prefixedSource(prefix, query, cb, bhAdapter) {
});
}
function getPath() {
/*function getPath() {
var jsFileLocation = $("script[src*=edit_books]").attr("src"); // the js file path
return jsFileLocation.substr(0, jsFileLocation.search("/static/js/edit_books.js")); // the js folder path
}
}*/
var authors = new Bloodhound({
name: "authors",