document.write() conflicts with jQuery.
Instead, appending Inline Edit to parent div (class="tools") with $.append(), the recommended method. $('body').append() is executed late, and hence, not used.
This commit is contained in:
@@ -1272,7 +1272,7 @@ function PMA_showMessage($message, $sql_query = null, $type = 'notice', $is_view
|
|||||||
}
|
}
|
||||||
$inline_edit = "<script type=\"text/javascript\">\n" .
|
$inline_edit = "<script type=\"text/javascript\">\n" .
|
||||||
"//<![CDATA[\n" .
|
"//<![CDATA[\n" .
|
||||||
"document.write('[<a href=\"#\" title=\"" .
|
"$('.tools').append('[<a href=\"#\" title=\"" .
|
||||||
PMA_escapeJsString(__('Inline edit of this query')) .
|
PMA_escapeJsString(__('Inline edit of this query')) .
|
||||||
"\" id=\"inline_edit\">" .
|
"\" id=\"inline_edit\">" .
|
||||||
PMA_escapeJsString(__('Inline')) .
|
PMA_escapeJsString(__('Inline')) .
|
||||||
|
Reference in New Issue
Block a user