no need for extra div, but the link must be added before the slide effect is added (which adds additional slide-div around the object which would result the link be added inside the slide-div)

This commit is contained in:
Sebastian Mendel
2008-01-29 10:58:39 +00:00
parent 43d3dcf006
commit f1f5f71243
4 changed files with 7 additions and 10 deletions

View File

@@ -2327,19 +2327,19 @@ function PMA_generate_slider_effect($id, $message) {
<script type="text/javascript"> <script type="text/javascript">
// <![CDATA[ // <![CDATA[
window.addEvent('domready', function(){ window.addEvent('domready', function(){
var anchor<?php echo $id; ?> = new Element('a', {
'id': 'toggle_<?php echo $id; ?>',
'href': '#'
});
anchor<?php echo $id; ?>.appendText('<?php echo $message; ?>');
anchor<?php echo $id; ?>.injectBefore($('<?php echo $id; ?>'));
var mySlide<?php echo $id; ?> = new Fx.Slide('<?php echo $id; ?>'); var mySlide<?php echo $id; ?> = new Fx.Slide('<?php echo $id; ?>');
<?php if ($GLOBALS['cfg']['InitialSlidersStatus'] == 'closed') { <?php if ($GLOBALS['cfg']['InitialSlidersStatus'] == 'closed') {
?> ?>
mySlide<?php echo $id; ?>.hide(); mySlide<?php echo $id; ?>.hide();
<?php } <?php }
?> ?>
var anchor<?php echo $id; ?> = new Element('a', {
'id': 'toggle_<?php echo $id; ?>',
'href': '#'
});
anchor<?php echo $id; ?>.appendText('<?php echo $message; ?>');
anchor<?php echo $id; ?>.injectBefore($('<?php echo $id; ?>_anchor'));
$('toggle_<?php echo $id; ?>').addEvent('click', function(e){ $('toggle_<?php echo $id; ?>').addEvent('click', function(e){
e = new Event(e); e = new Event(e);
mySlide<?php echo $id; ?>.toggle(); mySlide<?php echo $id; ?>.toggle();

View File

@@ -20,7 +20,6 @@ $routines = PMA_DBI_fetch_result('SELECT SPECIFIC_NAME,ROUTINE_NAME,ROUTINE_TYPE
if ($routines) { if ($routines) {
PMA_generate_slider_effect('routines', $strRoutines); PMA_generate_slider_effect('routines', $strRoutines);
echo '<div id="routines_anchor"></div>';
echo '<div id="routines">' . "\n"; echo '<div id="routines">' . "\n";
echo '<fieldset>' . "\n"; echo '<fieldset>' . "\n";
echo ' <legend>' . $strRoutines . '</legend>' . "\n"; echo ' <legend>' . $strRoutines . '</legend>' . "\n";

View File

@@ -259,7 +259,6 @@ while (list($operator) = each($GLOBALS['cfg']['UnaryOperators'])) {
<?php <?php
PMA_generate_slider_effect('searchoptions', $strOptions); PMA_generate_slider_effect('searchoptions', $strOptions);
?> ?>
<div id="searchoptions_anchor"></div>
<div id="searchoptions">' <div id="searchoptions">'
<fieldset id="fieldset_select_fields"> <fieldset id="fieldset_select_fields">

View File

@@ -537,7 +537,6 @@ echo "\n\n";
* Displays indexes * Displays indexes
*/ */
PMA_generate_slider_effect('tablestatistics', $strDetails); PMA_generate_slider_effect('tablestatistics', $strDetails);
echo '<div id="tablestatistics_anchor"></div>';
echo '<div id="tablestatistics">' . "\n"; echo '<div id="tablestatistics">' . "\n";
if (! $tbl_is_view && ! $db_is_information_schema) { if (! $tbl_is_view && ! $db_is_information_schema) {
define('PMA_IDX_INCLUDED', 1); define('PMA_IDX_INCLUDED', 1);