Debug friendly parameter names for navigation reloading requests

This commit is contained in:
Rouslan Placella 2012-07-13 16:52:22 +01:00
parent 9aa3ac65ec
commit bbb1a5a255
2 changed files with 17 additions and 17 deletions

View File

@ -228,8 +228,8 @@ function PMA_reloadNavigation() {
if ($(this).find('img').is('.ic_b_minus')
&& $(this).closest('li').find('div.list_container .ic_b_minus').length == 0
) {
params['aPath_' + count] = $(this).find('span.aPath').text();
params['vPath_' + count] = $(this).find('span.vPath').text();
params['n' + count + '_aPath'] = $(this).find('span.aPath').text();
params['n' + count + '_vPath'] = $(this).find('span.vPath').text();
var pos2_name = $(this).find('span.pos2_name').text();
if (! pos2_name) {
@ -248,11 +248,11 @@ function PMA_reloadNavigation() {
.text();
}
params['pos2_name_' + count] = pos2_name;
params['pos2_value_' + count] = pos2_value;
params['n' + count + '_pos2_name'] = pos2_name;
params['n' + count + '_pos2_value'] = pos2_value;
params['pos3_name_' + count] = $(this).find('span.pos3_name').text();
params['pos3_value_' + count] = $(this).find('span.pos3_value').text();
params['n' + count + '_pos3_name'] = $(this).find('span.pos3_name').text();
params['n' + count + '_pos3_value'] = $(this).find('span.pos3_value').text();
count++;
}
});

View File

@ -94,28 +94,28 @@ class PMA_NavigationTree {
$this->pos3_name[0] = $_REQUEST['pos3_name'];
$this->pos3_value[0] = $_REQUEST['pos3_value'];
}
} else if (isset($_REQUEST['aPath_0'])) {
} else if (isset($_REQUEST['n0_aPath'])) {
$count = 0;
while (isset($_REQUEST['aPath_' . $count])) {
while (isset($_REQUEST['n' . $count . '_aPath'])) {
$this->_aPath[$count] = $this->parsePath(
$_REQUEST['aPath_' . $count]
$_REQUEST['n' . $count . '_aPath']
);
$this->pos2_name[$count] = $_REQUEST['pos2_name_' . $count];
$this->pos2_value[$count] = $_REQUEST['pos2_value_' . $count];
if (isset($_REQUEST['pos3_name_' . $count])) {
$this->pos3_name[$count] = $_REQUEST['pos3_name_' . $count];
$this->pos3_value[$count] = $_REQUEST['pos3_value_' . $count];
$this->pos2_name[$count] = $_REQUEST['n' . $count . '_pos2_name'];
$this->pos2_value[$count] = $_REQUEST['n' . $count . '_pos2_value'];
if (isset($_REQUEST['n' . $count . '_pos3_name'])) {
$this->pos3_name[$count] = $_REQUEST['n' . $count . '_pos3_name'];
$this->pos3_value[$count] = $_REQUEST['n' . $count . '_pos3_value'];
}
$count++;
}
}
if (isset($_REQUEST['vPath'])) {
$this->_vPath[0] = $this->parsePath($_REQUEST['vPath']);
} else if (isset($_REQUEST['vPath_0'])) {
} else if (isset($_REQUEST['n0_vPath'])) {
$count = 0;
while (isset($_REQUEST['vPath_' . $count])) {
while (isset($_REQUEST['n' . $count . '_vPath'])) {
$this->_vPath[$count] = $this->parsePath(
$_REQUEST['vPath_' . $count]
$_REQUEST['n' . $count . '_vPath']
);
$count++;
}