Skip to content

Commit

Permalink
added jquery stop-propogation for deleteme
Browse files Browse the repository at this point in the history
  • Loading branch information
cfapress committed Feb 25, 2009
1 parent c808465 commit b9079ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interface/patient_file/encounter/forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function imdeleted() {

echo ":";
if (acl_check('admin', 'super')) {
echo "&nbsp;&nbsp;<a href='' onclick='return deleteme()'>" .
echo "&nbsp;&nbsp;<a href='' onclick='return deleteme()' class='deleteme'>" .
"<font class='more' style='color:red'>(Delete)</font></a>";
}
echo "<br>\n";
Expand Down Expand Up @@ -154,6 +154,8 @@ function imdeleted() {
$(".onerow").mouseover(function() { $(this).toggleClass("highlight"); });
$(".onerow").mouseout(function() { $(this).toggleClass("highlight"); });
$(".onerow").click(function() { GotoForm(this); });

$(".deleteme").click(function(evt) { deleteme(); evt.stopPropogation(); });

var GotoForm = function(obj) {
var parts = $(obj).attr("id").split("~");
Expand Down

0 comments on commit b9079ab

Please sign in to comment.