document.write conflicts with jQuery. Use $(body).append() instead at

the same place to inject inline HTML with JavaScript.
This commit is contained in:
ninadsp
2010-05-29 01:28:57 +05:30
parent d775f341a4
commit 20fce4cdcd

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=\"" .
"$(body).append('[<a href=\"#\" title=\"" .
PMA_escapeJsString(__('Inline edit of this query')) .
"\" id=\"inline_edit\">" .
PMA_escapeJsString(__('Inline')) .