From 8ddfb7140dbff7556ceab8d8b293f21c8d97f79c Mon Sep 17 00:00:00 2001 From: ninadsp Date: Thu, 26 Aug 2010 22:22:39 +0530 Subject: [PATCH] Used localized string for the Inline Edit anchor being generated --- js/messages.php | 1 + js/sql.js | 14 ++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/js/messages.php b/js/messages.php index b72ae1e81..ef237cb8f 100755 --- a/js/messages.php +++ b/js/messages.php @@ -82,6 +82,7 @@ $js_messages['strSearching'] = __('Searching'); /* For sql.js */ $js_messages['strToggleQueryBox'] = __('Toggle Query Box Visibility'); +$js_messages['strInlineEdit'] = __('Inline Edit'); /* For tbl_change.js */ $js_messages['strIgnore'] = __('Ignore'); diff --git a/js/sql.js b/js/sql.js index 91d1b50ad..a2000ac24 100644 --- a/js/sql.js +++ b/js/sql.js @@ -46,10 +46,13 @@ function appendInlineAnchor(disp_mode) { if(disp_mode == 'vertical') { var cloned_row = $('.edit_row_anchor').removeClass('edit_row_anchor').parent('tr').clone(); + var img_object = $(cloned_row).find('img:first').attr('title', PMA_messages['strInlineEdit']); + $(cloned_row).find('td').addClass('edit_row_anchor') .find('a').attr('href', '#') - .find('img').attr('title', 'Inline Edit') - .after("Inline"); + .find('div') + .text(PMA_messages['strInlineEdit']) + .prepend(img_object); $(cloned_row).insertBefore($('.where_clause').parent('tr')); @@ -63,10 +66,13 @@ function appendInlineAnchor(disp_mode) { var cloned_anchor = $(this).clone(); + var img_object = $(cloned_anchor).find('img').attr('title', PMA_messages['strInlineEdit']); + $(cloned_anchor).addClass('edit_row_anchor') .find('a').attr('href', '#') - .find('img').attr('title', 'Inline Edit') - .after("Inline"); + .find('div') + .text(PMA_messages['strInlineEdit']) + .prepend(img_object); $(this).siblings('.where_clause') .before(cloned_anchor);