For bug 3168757:
- Use jQuery to make the text look and behave like a link
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user