Widget:PillIdentifier: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 298: | Line 298: | ||
var dirIndex = ""; | var dirIndex = ""; | ||
var position = $(".propertyContainerActive").data()["order"]; | var position = $(".propertyContainerActive").data()["order"]; | ||
console.log(direction); | |||
console.log(position); | |||
var positionArr = [ | var positionArr = [ | ||
["", ""], | ["", ""], | ||
Line 308: | Line 309: | ||
]; | ]; | ||
if (direction == "back"){ | if (direction === "back"){ | ||
dirIndex = 0; | dirIndex = 0; | ||
} | } | ||
else if (direction == "next"){ | else if (direction === "next"){ | ||
dirIndex = 1; | dirIndex = 1; | ||
} | } | ||
Line 317: | Line 318: | ||
console.log("Ruh-roh. Something happened in figuring out what direction to navigate"); | console.log("Ruh-roh. Something happened in figuring out what direction to navigate"); | ||
} | } | ||
console.log( | |||
var newActiveDiv = positionArr[position][dirIndex]; | var newActiveDiv = positionArr[position][dirIndex]; |