From cdaf7c6c0c0cc29442d2fc37df04324e61f9a17a Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Wed, 18 May 2016 20:11:03 +0100 Subject: Unused code --- app/Module/ClippingsCartModule.php | 10 +++++----- app/Module/FamiliesSidebarModule.php | 6 +++--- app/Module/IndividualSidebarModule.php | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/Module/ClippingsCartModule.php b/app/Module/ClippingsCartModule.php index b087b17402..241e8ff426 100644 --- a/app/Module/ClippingsCartModule.php +++ b/app/Module/ClippingsCartModule.php @@ -702,7 +702,7 @@ class ClippingsCartModule extends AbstractModule implements ModuleMenuInterface, $out .= ' (' . $record->getLifeSpan() . ')'; } $out .= ''; - $out .= ''; + $out .= ''; $out .= ''; } } @@ -711,17 +711,17 @@ class ClippingsCartModule extends AbstractModule implements ModuleMenuInterface, if ($cart[$WT_TREE->getTreeId()]) { $out .= - '
' . + '
' . I18N::translate('Empty the clippings cart') . '' . '
' . - '' . + '' . I18N::translate('Download') . ''; } $record = Individual::getInstance($pid, $WT_TREE); if ($record && !array_key_exists($record->getXref(), $cart[$WT_TREE->getTreeId()])) { - $out .= '
' . I18N::translate('Add %s to the clippings cart', $record->getFullName()) . ''; + $out .= '
' . I18N::translate('Add %s to the clippings cart', $record->getFullName()) . ''; } return $out; @@ -741,7 +741,7 @@ class ClippingsCartModule extends AbstractModule implements ModuleMenuInterface, $out = ''; diff --git a/app/Module/FamiliesSidebarModule.php b/app/Module/FamiliesSidebarModule.php index b06a692ceb..d7e00f1d3c 100644 --- a/app/Module/FamiliesSidebarModule.php +++ b/app/Module/FamiliesSidebarModule.php @@ -101,7 +101,7 @@ class FamiliesSidebarModule extends AbstractModule implements ModuleSidebarInter function fsearchQ() { var query = jQuery("#sb_fam_name").val(); if (query.length>1) { - jQuery("#sb_fam_content").load("module.php?mod=' . $this->getName() . '&mod_action=ajax&sb_action=families&search="+query); + jQuery("#sb_fam_content").load("module.php?mod=' . $this->getName() . '&mod_action=ajax&search="+query); } } @@ -121,7 +121,7 @@ class FamiliesSidebarModule extends AbstractModule implements ModuleSidebarInter if (!famloadedNames[surname]) { jQuery.ajax({ - url: "module.php?mod=' . $this->getName() . '&mod_action=ajax&sb_action=families&alpha=" + encodeURIComponent(alpha) + "&surname=" + encodeURIComponent(surname), + url: "module.php?mod=' . $this->getName() . '&mod_action=ajax&alpha=" + encodeURIComponent(alpha) + "&surname=" + encodeURIComponent(surname), cache: false, success: function(html) { jQuery("div.name_tree_div", element.closest("li")) @@ -162,7 +162,7 @@ class FamiliesSidebarModule extends AbstractModule implements ModuleSidebarInter $html = $letter; break; } - $html = '' . $html . ''; + $html = '' . $html . ''; $out .= $html . " "; } diff --git a/app/Module/IndividualSidebarModule.php b/app/Module/IndividualSidebarModule.php index 181a11cf02..e6090d2557 100644 --- a/app/Module/IndividualSidebarModule.php +++ b/app/Module/IndividualSidebarModule.php @@ -102,7 +102,7 @@ class IndividualSidebarModule extends AbstractModule implements ModuleSidebarInt function isearchQ() { var query = jQuery("#sb_indi_name").val(); if (query.length>1) { - jQuery("#sb_indi_content").load("module.php?mod=' . $this->getName() . '&mod_action=ajax&sb_action=individuals&search="+query); + jQuery("#sb_indi_content").load("module.php?mod=' . $this->getName() . '&mod_action=ajax&search="+query); } } @@ -122,7 +122,7 @@ class IndividualSidebarModule extends AbstractModule implements ModuleSidebarInt if (!loadedNames[surname]) { jQuery.ajax({ - url: "module.php?mod=' . $this->getName() . '&mod_action=ajax&sb_action=individuals&alpha=" + encodeURIComponent(alpha) + "&surname=" + encodeURIComponent(surname), + url: "module.php?mod=' . $this->getName() . '&mod_action=ajax&alpha=" + encodeURIComponent(alpha) + "&surname=" + encodeURIComponent(surname), cache: false, success: function(html) { jQuery("div.name_tree_div", element.closest("li")) @@ -163,7 +163,7 @@ class IndividualSidebarModule extends AbstractModule implements ModuleSidebarInt $html = $letter; break; } - $html = '' . $html . ''; + $html = '' . $html . ''; $out .= $html . " "; } -- cgit v1.3