Widget:MedIDMaker: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 25: | Line 25: | ||
token : mw.user.tokens.get('editToken'), | token : mw.user.tokens.get('editToken'), | ||
text : chapterText, | text : chapterText, | ||
title : $("# | title : $("#pillName").val(), | ||
format : 'json' | format : 'json' | ||
}) | }) | ||
Line 31: | Line 31: | ||
alert("Great success?"); | alert("Great success?"); | ||
$('option:selected', 'select').removeAttr('selected').next('option').attr('selected', 'selected'); | $('option:selected', 'select').removeAttr('selected').next('option').attr('selected', 'selected'); | ||
pageContent(); | |||
}); | }); | ||
} | } | ||
Line 50: | Line 50: | ||
}); | }); | ||
} | } | ||
function | function pageContent() { | ||
resetForm(); | resetForm(); | ||
$("#chapterContent2").css("visibility", "visible"); | $("#chapterContent2").css("visibility", "visible"); | ||
Line 58: | Line 56: | ||
$("#pend").val("|blackBoxWarningBody="); | $("#pend").val("|blackBoxWarningBody="); | ||
$("#append").val("}}"); | $("#append").val("}}"); | ||
$("#instructions").html("These are some instructions"); | $("#instructions").html("These are some instructions"); | ||
} | } | ||
function clearHeading() { | function clearHeading() { | ||
Line 109: | Line 91: | ||
Pill Image Name: <input type="text" id="pillName" /><br /> | Pill Image Name: <input type="text" id="pillName" /><br /> | ||
<br /> | <br /> | ||
Please enter the name of the page to which this pill is associated: <input type="text" id="drugName" /><br /> | |||
Pill Imprint: <input type="text" id="pillImprint" /><br /> | Pill Imprint: <input type="text" id="pillImprint" /><br /> | ||
<br /> | <br /> | ||
Line 129: | Line 113: | ||
<br /> | <br /> | ||
Pill Shape: <select id="pillShape"> | Pill Shape: <select id="pillShape"> | ||
<option>Round</option> | <option>Round</option> | ||
<option>Oval</option> | <option>Oval</option> | ||
Line 178: | Line 161: | ||
</select><br /> | </select><br /> | ||
<br /> | <br /> | ||
Direct link to the | Direct link to the Pill Image: <input type="text" id="pillImage" value="http://static.wikidoc.org/0/0e/No_image.jpg" /> | ||
<br /> | <br /> | ||
<div id="headingDiv" style="visibility:hidden;"> | <div id="headingDiv" style="visibility:hidden;"> | ||
</div><br /> | </div><br /> | ||