For bug 3168757:

- Use jQuery to make the text look and behave like a link
This commit is contained in:
Marc Delisle
2011-02-24 06:04:49 -05:00
parent b78bd77e41
commit 984cf6dbad
2 changed files with 15 additions and 1 deletions

View File

@@ -2512,5 +2512,19 @@ $(document).ready(function() {
*/ */
PMA_init_slider(); PMA_init_slider();
/**
* Enables the text generated by PMA_linkOrButton() to be clickable
*/
$('.clickprevimage')
.css('color', function(index) {
return $('a').css('color');
})
.css('cursor', function(index) {
return $('a').css('cursor');
}) //todo: hover effect
.live('click',function(e) {
$(this).parent().find('input:image').click();
});
}) // end of $(document).ready() }) // end of $(document).ready()

View File

@@ -1876,7 +1876,7 @@ function PMA_linkOrButton($url, $message, $tag_params = array(),
// but we can at least show the message. // but we can at least show the message.
// If PropertiesIconic is false or 'both' // If PropertiesIconic is false or 'both'
if ($GLOBALS['cfg']['PropertiesIconic'] !== true) { if ($GLOBALS['cfg']['PropertiesIconic'] !== true) {
$ret .= ' ' . $displayed_message; $ret .= ' <span class="clickprevimage">' . $displayed_message . '</span>';
} }
} }
} else { } else {