diff options
| author | Greg Roach <fisharebest@gmail.com> | 2016-01-15 17:04:01 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2016-01-15 17:04:01 +0000 |
| commit | 622637a34bcb43444615f6adcb51ce141b457144 (patch) | |
| tree | 7bf1ba9e10fe00256aa9186b0b295c2773dbeff4 | |
| parent | 5e257c9c18f4167089a11510f2da24031dab01b5 (diff) | |
| download | webtrees-622637a34bcb43444615f6adcb51ce141b457144.tar.gz webtrees-622637a34bcb43444615f6adcb51ce141b457144.tar.bz2 webtrees-622637a34bcb43444615f6adcb51ce141b457144.zip | |
Fix #800 - census text not always updated
| -rw-r--r-- | modules_v3/GEDFact_assistant/census/census-edit.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules_v3/GEDFact_assistant/census/census-edit.php b/modules_v3/GEDFact_assistant/census/census-edit.php index 44408f8fd4..1fedb08e3a 100644 --- a/modules_v3/GEDFact_assistant/census/census-edit.php +++ b/modules_v3/GEDFact_assistant/census/census-edit.php @@ -44,8 +44,6 @@ $controller ->setPageTitle(I18N::translate('Create a new shared note using assistant')) ->addInlineJavascript( 'jQuery("head").append(\'<link rel="stylesheet" href="' . WT_STATIC_URL . WT_MODULES_DIR . 'GEDFact_assistant/census/style.css" type="text/css">\');' . - 'jQuery("input").on("change", updateCensusText);' . - 'updateCensusText();' . 'jQuery("#tblSample").on("click", ".icon-remove", function() { jQuery(this).closest("tr").remove(); });' ) ->pageHeader(); @@ -56,7 +54,7 @@ $controller <?php echo $controller->getPageTitle(); ?> </h2> -<form method="post" action="edit_interface.php"> +<form method="post" action="edit_interface.php" onsubmit="updateCensusText();"> <input type="hidden" name="action" value="addnoteaction_assisted"> <input type="hidden" name="noteid" value="newnote"> <input id="pid_array" type="hidden" name="pid_array" value="none"> @@ -214,7 +212,7 @@ $controller /* Add an HTML row to the table */ function appendCensusRow(row) { jQuery("#tblSample tbody").append(row); - updateCensusText(); + return false; } |
