The branch, master has been updated via 18f6882f89d0f5327e358a7bcdb61fb847aea2ff (commit) from 72121200042ff2f1fbca11c941e9ff98aabe1c46 (commit)
- Log ----------------------------------------------------------------- commit 18f6882f89d0f5327e358a7bcdb61fb847aea2ff Author: Marc Delisle marc@infomarc.info Date: Sat Nov 20 07:43:06 2010 -0500
do not show visual builder anchor if js is not enabled
-----------------------------------------------------------------------
Summary of changes: db_qbe.php | 2 +- js/functions.js | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/db_qbe.php b/db_qbe.php index d2df637..f4f4e85 100644 --- a/db_qbe.php +++ b/db_qbe.php @@ -177,7 +177,7 @@ function showColumnSelectCell($columns, $column_number, $selected = '') $tab['link'] .= $tab['fragment']; } ?> -<div class="notice"> +<div id="visual_builder_anchor" class="notice hide"> <span id="footnote_1"> <?php echo __('Switch to'); ?> <form action="<?php echo $tab_designer['link'] ?>" method="post"> diff --git a/js/functions.js b/js/functions.js index 01db2e6..d29c421 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2392,15 +2392,21 @@ $(document).ready(function() { ); }) // end of $(document).ready() for vertical pointer
-/** - * Vertical marker - */ $(document).ready(function() { + /** + * Vertical marker + */ $('.vmarker').live('click', function(e) { var $this_td = $(this); var row_num = PMA_getRowNumber($this_td.attr('class')); // for all td of the same vertical row, toggle the marked class $('.vmarker').filter('.row_' + row_num).toggleClass('marked'); }); -}) // end of $(document).ready() for vertical marker + + /** + * Reveal visual builder anchor + */ + + $('#visual_builder_anchor').show(); +}) // end of $(document).ready()
hooks/post-receive