Used localized string for the Inline Edit anchor being generated
This commit is contained in:
@@ -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');
|
||||
|
14
js/sql.js
14
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);
|
||||
|
Reference in New Issue
Block a user