Inline edit link not generated when PropertiesIconic is false

This commit is contained in:
Marc Delisle
2011-02-22 07:46:33 -05:00
parent 2f37e3cb5d
commit 9948d179ba

View File

@@ -69,8 +69,10 @@ function appendInlineAnchor() {
var $cloned_tr = $this_tr.clone();
var $img_object = $cloned_tr.find('img:first').attr('title', PMA_messages['strInlineEdit']);
var img_src = $img_object.attr('src').replace(/b_edit/,'b_inline_edit');
$img_object.attr('src', img_src);
if ($img_object.length != 0) {
var img_src = $img_object.attr('src').replace(/b_edit/,'b_inline_edit');
$img_object.attr('src', img_src);
}
$cloned_tr.find('td')
.addClass('inline_edit_anchor')
@@ -98,8 +100,10 @@ function appendInlineAnchor() {
var $cloned_anchor = $this_td.clone();
var $img_object = $cloned_anchor.find('img').attr('title', PMA_messages['strInlineEdit']);
var img_src = $img_object.attr('src').replace(/b_edit/,'b_inline_edit');
$img_object.attr('src', img_src);
if ($img_object.length != 0) {
var img_src = $img_object.attr('src').replace(/b_edit/,'b_inline_edit');
$img_object.attr('src', img_src);
}
$cloned_anchor.addClass('inline_edit_anchor')
.find('a').attr('href', '#')