diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-10-31 16:15:21 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-10-31 16:15:21 +0000 |
| commit | bdaafd1d9f6ed5e32bfc39ee60a4f6b9b4e9aad1 (patch) | |
| tree | 62cc5bc8e577d118ce0b60c1b37b523681e89753 /modules_v3 | |
| parent | 87b9f8763ab285297b35f0cf4552214701fbd849 (diff) | |
| download | webtrees-bdaafd1d9f6ed5e32bfc39ee60a4f6b9b4e9aad1.tar.gz webtrees-bdaafd1d9f6ed5e32bfc39ee60a4f6b9b4e9aad1.tar.bz2 webtrees-bdaafd1d9f6ed5e32bfc39ee60a4f6b9b4e9aad1.zip | |
Replace function ToggleByClassName() with native jQuery function
Diffstat (limited to 'modules_v3')
| -rw-r--r-- | modules_v3/personal_facts/module.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules_v3/personal_facts/module.php b/modules_v3/personal_facts/module.php index c18ce9bfb1..0ae372e401 100644 --- a/modules_v3/personal_facts/module.php +++ b/modules_v3/personal_facts/module.php @@ -81,10 +81,10 @@ class personal_facts_WT_Module extends WT_Module implements WT_Module_Tab { ?>
<tr id="row_top">
<td colspan="2" class="descriptionbox rela">
- <input id="checkbox_rela_facts" type="checkbox" <?php if ($EXPAND_RELATIVES_EVENTS) echo ' checked="checked"'; ?> onclick="toggleByClassName('TR', 'row_rela');" />
+ <input id="checkbox_rela_facts" type="checkbox" <?php if ($EXPAND_RELATIVES_EVENTS) echo ' checked="checked"'; ?> onclick="jQuery('tr.row_rela').toggle();" />
<label for="checkbox_rela_facts"><?php echo WT_I18N::translate('Events of close relatives'); ?></label>
<?php if (file_exists(get_site_setting('INDEX_DIRECTORY').'histo.'.WT_LOCALE.'.php')) { ?>
- <input id="checkbox_histo" type="checkbox" <?php if ($EXPAND_HISTO_EVENTS) echo ' checked="checked"'; ?> onclick="toggleByClassName('TR', 'row_histo');" />
+ <input id="checkbox_histo" type="checkbox" <?php if ($EXPAND_HISTO_EVENTS) echo ' checked="checked"'; ?> onclick="jQuery('tr.row_histo').toggle();" />
<label for="checkbox_histo"><?php echo WT_I18N::translate('Historical facts'); ?></label>
<?php } ?>
</td>
@@ -116,10 +116,10 @@ class personal_facts_WT_Module extends WT_Module implements WT_Module_Tab { echo '</table><br />';
echo WT_JS_START;
if (!$EXPAND_RELATIVES_EVENTS) {
- echo "toggleByClassName('TR', 'row_rela');";
+ echo "jQuery('tr.row_rela').toggle();";
}
if (!$EXPAND_HISTO_EVENTS) {
- echo "toggleByClassName('TR', 'row_histo');";
+ echo "jQuery('tr.row_histo').toggle();";
}
echo WT_JS_END;
return '<div id="'.$this->getName().'_content">'.ob_get_clean().'</div>';
|
