Widget:PillIdentifier: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 293: | Line 293: | ||
} | } | ||
function nav(){ | function nav(){ | ||
var direction = $(this).data()[direction]; | var direction = $(this).data()[direction]; | ||
Line 307: | Line 308: | ||
]; | ]; | ||
if direction == "back" | if (direction == "back"){ | ||
dirIndex = 0; | dirIndex = 0; | ||
} | } | ||
else if direction == "next" | else if (direction == "next"){ | ||
dirIndex = 1; | dirIndex = 1; | ||
} | } | ||
Line 326: | Line 325: | ||
var nextPosition = $(newActiveDiv).data()[order]; | var nextPosition = $(newActiveDiv).data()[order]; | ||
if positionArray[nextPosition][0] !== null{ | if (positionArray[nextPosition][0] !== null){ | ||
$("#back").attr("visibility","visible"); | $("#back").attr("visibility","visible"); | ||
} | } | ||
Line 334: | Line 333: | ||
} | } | ||
if positionArray[nextPosition][1] !== null{ | if (positionArray[nextPosition][1] !== null){ | ||
$("#next").attr("visibility","visible"); | $("#next").attr("visibility","visible"); | ||
} | } |