The branch, QA_3_4 has been updated
via 8bad4aea1e1046661a13e8f05acd4a2fab6fd32a (commit)
from 989a1f35e9288f70fc7255b6368880185a7d60a2 (commit)
- Log -----------------------------------------------------------------
commit 8bad4aea1e1046661a13e8f05acd4a2fab6fd32a
Author: Madhura Jayaratne <madhura.cj(a)gmail.com>
Date: Sun May 15 21:15:35 2011 +0530
Bug #3302457 - Inline edit and $cfg['PropertiesIconic']
-----------------------------------------------------------------------
Summary of changes:
js/sql.js | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/js/sql.js b/js/sql.js
index bd068cf..1872e12 100644
--- a/js/sql.js
+++ b/js/sql.js
@@ -118,10 +118,16 @@ function appendInlineAnchor() {
.first()
.prepend($img_object);
} 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
$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');
- $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
.find('.clickprevimage')
.text(' ' + PMA_messages['strInlineEdit']);
hooks/post-receive
--
phpMyAdmin