Bug #3302457 - Inline edit and $cfg['PropertiesIconic']
This commit is contained in:
10
js/sql.js
10
js/sql.js
@@ -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']);
|
||||||
|
Reference in New Issue
Block a user