Bug #3302457 - Inline edit and $cfg['PropertiesIconic']

This commit is contained in:
Madhura Jayaratne
2011-05-15 21:15:35 +05:30
parent 989a1f35e9
commit 8bad4aea1e

View File

@@ -118,10 +118,16 @@ function appendInlineAnchor() {
.first() .first()
.prepend($img_object); .prepend($img_object);
} else { } else {
// Only text is displayed. See $cfg['PropertiesIconic']
$cloned_anchor.find('a').attr('href', '#');
$cloned_anchor.find('a span').text(PMA_messages['strInlineEdit']);
// the link was too big so <input type="image"> is there // the link was too big so <input type="image"> is there
$img_object = $cloned_anchor.find('input:image').attr('title', PMA_messages['strInlineEdit']); $img_object = $cloned_anchor.find('input:image').attr('title', PMA_messages['strInlineEdit']);
var img_src = $img_object.attr('src').replace(/b_edit/,'b_inline_edit'); if ($img_object.length > 0) {
$img_object.attr('src', img_src); var img_src = $img_object.attr('src').replace(/b_edit/,'b_inline_edit');
$img_object.attr('src', img_src);
}
$cloned_anchor $cloned_anchor
.find('.clickprevimage') .find('.clickprevimage')
.text(' ' + PMA_messages['strInlineEdit']); .text(' ' + PMA_messages['strInlineEdit']);