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();
/**
* 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()