Fixed the issue with the click not opening the shortcut.
This commit is contained in:
@@ -65,7 +65,7 @@ function autocomplete(inp, passedValues) {
|
||||
else if (e.keyCode == 13) {
|
||||
/*If the ENTER key is pressed, prevent the form from being submitted,*/
|
||||
if (currentFocus > -1) {
|
||||
x.preventDefault();
|
||||
e.preventDefault();
|
||||
/*and simulate a click on the "active" item:*/
|
||||
if (x) window.location = x[0].getAttribute('url');
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ window.onload = function() {
|
||||
}
|
||||
|
||||
|
||||
debug = false; // Enable while testing on local
|
||||
debug = true; // Enable while testing on local
|
||||
searchBarDivId = "search-bar"
|
||||
searchBarId = "search-bar-input"
|
||||
messageDivId = "message"
|
||||
@@ -230,7 +230,6 @@ function parseAndCreate(jsonData) {
|
||||
|
||||
// Extract the quicklinks from the sqrs
|
||||
extractQuickLinks(sqrs);
|
||||
console.log(validQuickLinks);
|
||||
|
||||
sqrs.forEach((element, index) => {
|
||||
sqr = createSqr(element, index)
|
||||
@@ -248,7 +247,6 @@ function createSqr(sqrData, index) {
|
||||
// Sometimes, the user might not have set a value for the color,
|
||||
// in which case it will be undefined.
|
||||
colorValid = (color == undefined) ? false : isColorValid(color);
|
||||
console.log(isColorValid(color));
|
||||
|
||||
div = document.createElement("div")
|
||||
cls = document.createAttribute("class")
|
||||
|
||||
Reference in New Issue
Block a user