From 18f6882f89d0f5327e358a7bcdb61fb847aea2ff Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 20 Nov 2010 07:43:06 -0500 Subject: [PATCH] do not show visual builder anchor if js is not enabled --- 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 d2df6376d..f4f4e85c3 100644 --- a/db_qbe.php +++ b/db_qbe.php @@ -177,7 +177,7 @@ function showColumnSelectCell($columns, $column_number, $selected = '') $tab['link'] .= $tab['fragment']; } ?> -
+
diff --git a/js/functions.js b/js/functions.js index 01db2e636..d29c42108 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()