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:
ninadsp
2010-05-29 01:44:51 +05:30
parent d5b50587e7
commit bd139f2465

View File

@@ -1272,7 +1272,7 @@ function PMA_showMessage($message, $sql_query = null, $type = 'notice', $is_view
}
$inline_edit = "<script type=\"text/javascript\">\n" .
"//<![CDATA[\n" .
"document.write('[<a href=\"#\" title=\"" .
"$('.tools').append('[<a href=\"#\" title=\"" .
PMA_escapeJsString(__('Inline edit of this query')) .
"\" id=\"inline_edit\">" .
PMA_escapeJsString(__('Inline')) .