1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 03:24:01 +02:00

Load long texts for inline-edit by AJAX

Display link to current page only under AJAX
This commit is contained in:
Jakub Vrana
2010-10-18 13:57:22 +02:00
parent 78adfc2e3a
commit 390e38b8f5
22 changed files with 68 additions and 48 deletions

View File

@@ -62,7 +62,9 @@ document.getElementById('username').focus();
echo '<p class="tabs"><a href="' . h(ME . 'edit=' . urlencode($TABLE) . $set) . '">' . lang('New item') . "</a>\n";
}
echo "<a href='" . h(remove_from_uri("page")) . "&amp;page=last' title='" . lang('Page') . ": " . lang('last') . "'>&gt;&gt;</a>\n";
echo "<a href='" . h($_SERVER["REQUEST_URI"]) . "'>#</a>\n";
if (is_ajax()) {
echo "<a href='" . h($_SERVER["REQUEST_URI"]) . "'>#</a>\n";
}
}
function backwardKeys($table, $tableName) {