Widget:PillIdentifier: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
$('#submit').click(runQuery); | $('#submit').click(runQuery); | ||
$('.navTool').click(nav); | $('.navTool').click(nav); | ||
$('#reset").click(resetForm); | |||
$(".pillShapeOption").click(function(){ | $(".pillShapeOption").click(function(){ | ||
$(".pillShapeOption").children("img").css("border",""); | $(".pillShapeOption").children("img").css("border",""); | ||
Line 83: | Line 84: | ||
$('.pillMiscContainer').change(updateFormText); | $('.pillMiscContainer').change(updateFormText); | ||
}; | }; | ||
function resetForm(){ | |||
$('pillShapeOption).children("img").css("border",""); | |||
$('pillColorOption).children("img").css("border",""); | |||
$('pillScoreOption).children("img").css("border",""); | |||
$("#selectedShape").val(""); | |||
$("#selectedColor").val(""); | |||
$("#selectedScoring").val(""); | |||
$("#selectedImprint").val(""); | |||
$("#selectedNDC").val(""); | |||
$("#selectedIngred").val(""); | |||
$(".propertyContainerActive").attr("class", "propertyContainerInactive"); | |||
$("#queryContainer_Shape").attr("class", "propertyContainerActive"); | |||
$("#back").css("visibility","hidden"); | |||
}; | |||
function buildQueryParameters(){ | function buildQueryParameters(){ | ||
var queryShape = ""; | var queryShape = ""; | ||
Line 682: | Line 701: | ||
<div id="pillIDNav"> | <div id="pillIDNav"> | ||
<div id="reset"> | |||
<img src="http://static.wikidoc.org/a/a9/Pid_resetbutton.png" alt="reset"> | |||
</div> | |||
<div id="back" class="navTool" data-direction="back" style="visibility:hidden"> | <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"> |