Start implementing conditional Ajax (in results page)

This commit is contained in:
Marc Delisle
2011-01-22 09:50:12 -05:00
parent 3a739c1bee
commit 5464b54e17
5 changed files with 40 additions and 18 deletions

View File

@@ -2201,8 +2201,11 @@ function PMA_pageselector($rows, $pageNow = 1, $nbTotalPage = 1,
$pageNowMinusRange = ($pageNow - $range);
$pageNowPlusRange = ($pageNow + $range);
$gotopage = $prompt
. ' <select id="pageselector" name="pos" >' . "\n";
$gotopage = $prompt . ' <select id="pageselector" ';
if ($GLOBALS['cfg']['AjaxEnable']) {
$gotopage .= ' class="ajax"';
}
$gotopage .= ' name="pos" >' . "\n";
if ($nbTotalPage < $showAll) {
$pages = range(1, $nbTotalPage);
} else {