do not show visual builder anchor if js is not enabled
This commit is contained in:
@@ -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">
|
||||
|
@@ -2392,15 +2392,21 @@ $(document).ready(function() {
|
||||
);
|
||||
}) // end of $(document).ready() for vertical pointer
|
||||
|
||||
$(document).ready(function() {
|
||||
/**
|
||||
* Vertical marker
|
||||
*/
|
||||
$(document).ready(function() {
|
||||
$('.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()
|
||||
|
||||
|
Reference in New Issue
Block a user