1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-14 18:44:02 +02:00

Delete confusing link to the last page

This commit is contained in:
Jakub Vrana
2013-04-02 18:40:07 -07:00
parent 5739e03e97
commit c69d9fcfdf
29 changed files with 1 additions and 30 deletions

View File

@@ -165,8 +165,7 @@ username.form['auth[driver]'].onchange();
*/
function selectQuery($query) {
global $jush, $token;
return "<form action='" . h(ME) . "sql=' method='post'><p>"
. "<a href='" . h(remove_from_uri("page")) . "&amp;page=last' title='" . lang('Last page') . "'>&gt;&gt;</a> <span>"
return "<form action='" . h(ME) . "sql=' method='post'><p><span>"
. "<code class='jush-$jush'>" . h(str_replace("\n", " ", $query)) . "</code>"
. " <a href='" . h(ME) . "sql=" . urlencode($query) . "' onclick=\"return !selectEditSql(event, this.parentNode, '" . lang('Execute') . "');\">" . lang('Edit') . "</a>"
. "</span><input type='hidden' name='token' value='$token'></p></form>\n"; // </p> - required for IE9 inline edit