Fix #1843 (get path to script via html file and known js file instead of randomly picking last one)
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user