Created
September 3, 2008 14:44
-
-
Save masterkain/8597 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="#" onclick="try { | |
$("#diagnoses").append("<div class=\"diagnosis\">\n\t<dl class=\"form\">\n\t\t\n\t\t<dt class=\"optional\">Name </dt>\n\t\t<dd>\n\t\t\t<input autocomplete=\"off\" id=\"report_diagnosis_attributes__name\" name=\"report[diagnosis_attributes][][name]\" size=\"30\" type=\"text\" /> \n\t\t\t<a class=\"remove_diagnosis\" href=\"#\">remove</a>\n\t\t</dd>\n\t\t\n\t</dl>\n</div>"); | |
} catch (e) { alert('RJS error:\n\n' + e.toString()); alert('$(\"#diagnoses\").append(\"<div class=\\\"diagnosis\\\">\\n\\t<dl class=\\\"form\\\">\\n\\t\\t\\n\\t\\t<dt class=\\\"optional\\\">Name </dt>\\n\\t\\t<dd>\\n\\t\\t\\t<input autocomplete=\\\"off\\\" id=\\\"report_diagnosis_attributes__name\\\" name=\\\"report[diagnosis_attributes][][name]\\\" size=\\\"30\\\" type=\\\"text\\\" /> \\n\\t\\t\\t<a class=\\\"remove_diagnosis\\\" href=\\\"#\\\">remove</a>\\n\\t\\t</dd>\\n\\t\\t\\n\\t</dl>\\n</div>\");'); throw e }; return false;">add</a>)</h3> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment