summaryrefslogtreecommitdiff
path: root/help_text.php
diff options
context:
space:
mode:
authorDavid Drury <david@drury.me.uk>2014-07-09 15:04:46 +0100
committerDavid Drury <david@drury.me.uk>2014-07-09 15:04:46 +0100
commit97df231c43afd62ba5cb18ccd10f3eb96de706bc (patch)
tree7e30ef92bc7ca639d2497fad4c0e1667779c7d54 /help_text.php
parent88a27aa9cefd53a01efe9a01fd46460b6b51c133 (diff)
downloadwebtrees-97df231c43afd62ba5cb18ccd10f3eb96de706bc.tar.gz
webtrees-97df231c43afd62ba5cb18ccd10f3eb96de706bc.tar.bz2
webtrees-97df231c43afd62ba5cb18ccd10f3eb96de706bc.zip
Use JSON call to get the help topic
Also upped the z-index of ui-dialog because help text fell behind admin theme banner
Diffstat (limited to 'help_text.php')
-rw-r--r--help_text.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/help_text.php b/help_text.php
index eb6ecda091..6f770e579a 100644
--- a/help_text.php
+++ b/help_text.php
@@ -29,8 +29,6 @@
define('WT_SCRIPT_NAME', 'help_text.php');
require './includes/session.php';
-$controller=new WT_Controller_Ajax();
-
$help = WT_Filter::get('help');
switch ($help) {
//////////////////////////////////////////////////////////////////////////////
@@ -1014,7 +1012,7 @@ case 'USE_RIN':
case 'USE_SILHOUETTE':
$title=WT_I18N::translate('Use silhouettes');
- $text=WT_I18N::translate('Use silhouette images when no highlighted image for that individual has been specified. The images used are specific to the gender of the individual in question.<br><br><table><tr><td wrap valign="middle">This image might be used when the gender of the individual is unknown:')
+ $text=WT_I18N::translate('Use silhouette images when no highlighted image for that individual has been specified. The images used are specific to the gender of the individual in question.<br><br><table><tr><td style="vertical-align:middle">This image might be used when the gender of the individual is unknown:')
." </td><td><img src=\"".$WT_IMAGES["default_image_U"]."\" width=\"40\" alt=\"\" title=\"\" /></td></tr></table>";
break;
@@ -1509,8 +1507,7 @@ default:
}
break;
}
-
-$controller->pageHeader();
-
-echo '<span class="helpheader">', $title, '</span>';
-echo '<div class="helpcontent">', $text,'</div>';
+// This file is called by a getJSON call so return the data
+// in correct format
+header('Content-Type: application/json');
+echo json_encode(array('title'=>$title,'content'=>$text));