Skip to content

Commit

Permalink
editing self or family member removed clickable name. Changed code to…
Browse files Browse the repository at this point in the history
… change the name inside the new clickable href element instead of td
  • Loading branch information
regulator95 committed Jun 6, 2016
1 parent 738c5e5 commit c20e260
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/fhh.js
Original file line number Diff line number Diff line change
Expand Up @@ -1803,8 +1803,9 @@ function remove_family_member_by_id(id) {


function update_family_history_row(relationship_id, family_member_information) {
console.log("u heree")
// alert ("Rel:" + relationship_id);
$("#" + relationship_id).find("#relatives_name").html(family_member_information["name"]);
$("#" + relationship_id).find("#relatives_name").find("a").html(family_member_information["name"]);

// var update_history = $("<td class='action update_history' relationship_id='" + relationship_id
// + "' ><img src='images/icon_edit.gif' alt='Update History' title='Update History'></td>");
Expand Down Expand Up @@ -1839,7 +1840,7 @@ function update_family_history_row(relationship_id, family_member_information) {
}

function update_personal_history_row() {
$("#self").find("#relatives_name").html(personal_information.name);
$("#self").find("#relatives_name").find("a").html(personal_information.name);
}

function build_history_edit_dialog () {
Expand Down

0 comments on commit c20e260

Please sign in to comment.