inline edit: help seeing the buttons without scrolling; XHTML compliancy
This commit is contained in:
@@ -1667,6 +1667,8 @@ $(document).ready(function(){
|
|||||||
$token=$("input[name='token']").val();
|
$token=$("input[name='token']").val();
|
||||||
$sql_query=$("input[name='sql_query']").val();
|
$sql_query=$("input[name='sql_query']").val();
|
||||||
$(".syntax").replaceWith("<textarea name=\"sql_query_edit\" id=\"sql_query_edit\">"+ $sql_query +"</textarea><input type=\"button\" id=\"btnSave\" value=\"" + PMA_messages['strGo'] + "\"><input type=\"button\" id=\"btnDiscard\" value=\"" + PMA_messages['strCancel'] + "\">");
|
$(".syntax").replaceWith("<textarea name=\"sql_query_edit\" id=\"sql_query_edit\">"+ $sql_query +"</textarea><input type=\"button\" id=\"btnSave\" value=\"" + PMA_messages['strGo'] + "\"><input type=\"button\" id=\"btnDiscard\" value=\"" + PMA_messages['strCancel'] + "\">");
|
||||||
|
// to help seeing the buttons without scrolling
|
||||||
|
$('#sql_query_edit').css({height: '6em', width: '75%'});
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -1270,11 +1270,15 @@ function PMA_showMessage($message, $sql_query = null, $type = 'notice', $is_view
|
|||||||
if (! empty($refresh_link)) {
|
if (! empty($refresh_link)) {
|
||||||
PMA_profilingCheckbox($sql_query);
|
PMA_profilingCheckbox($sql_query);
|
||||||
}
|
}
|
||||||
$inline_edit = "<script language=\"javascript\">document.write('[<a href=\"#\" title=\"" .
|
$inline_edit = "<script type=\"text/javascript\">\n" .
|
||||||
|
"//<![CDATA[\n" .
|
||||||
|
"document.write('[<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')) .
|
||||||
"</a>]');</script>";
|
"</a>]');\n" .
|
||||||
|
"//]]>\n" .
|
||||||
|
"</script>";
|
||||||
echo $inline_edit . $edit_link . $explain_link . $php_link . $refresh_link . $validate_link;
|
echo $inline_edit . $edit_link . $explain_link . $php_link . $refresh_link . $validate_link;
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user