Widget:PillIdentifier: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 325: | Line 325: | ||
console.log(newActiveDiv); | console.log(newActiveDiv); | ||
$(this).removeClass(" | $(this).removeClass("propertyContainerAcitve").addClass("propertyContainerInactive"); | ||
$(newActiveDiv).removeClass("propertyContainerInactive").addClass("propertyContainerActive"); | |||
$(newActiveDiv).removeClass("propertyContainerInactive" | |||
var nextPosition = $(newActiveDiv).data()["order"]; | var nextPosition = $(newActiveDiv).data()["order"]; | ||
if (positionArr[nextPosition][0] !== null){ | if (positionArr[nextPosition][0] !== null){ | ||
$("#back"). | $("#back").css("visibility","visible"); | ||
} | } | ||
else | else | ||
{ | { | ||
$("#back"). | $("#back").css("visibility","hidden"); | ||
} | } | ||
if (positionArr[nextPosition][1] !== null){ | if (positionArr[nextPosition][1] !== null){ | ||
$("#next"). | $("#next").css("visibility","visible"); | ||
} | } | ||
else | else | ||
{ | { | ||
$("#next"). | $("#next").css("visibility","hidden"); | ||
} | } | ||
}; | }; | ||
Line 625: | Line 623: | ||
</div> | </div> | ||
<div id="pillIDNav"> | <div id="pillIDNav"> | ||
<div id="back" class="navTool" data-direction="back" | <div id="back" class="navTool" data-direction="back" style="visibility:hidden"> | ||
<img src="http://static.wikidoc.org/8/83/Pid_backbutton.png" alt="back"> | <img src="http://static.wikidoc.org/8/83/Pid_backbutton.png" alt="back"> | ||
</div> | </div> | ||
<div id="next" class="navTool" data-direction="next" | <div id="next" class="navTool" data-direction="next" style="visibility:visible"> | ||
<img src="http://static.wikidoc.org/8/8a/Pid_nextbutton.png" alt="next"> | <img src="http://static.wikidoc.org/8/8a/Pid_nextbutton.png" alt="next"> | ||
</div> | </div> |