allow to change order of account modules
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 119 KiB |
|
@ -257,13 +257,8 @@ function config_showAccountModules($scope, $title, &$container) {
|
|||
$typeSettings = $conf->get_typeSettings();
|
||||
// account modules
|
||||
$available = getAvailableModules($scope, true);
|
||||
$selected = $typeSettings['modules_' . $scope];
|
||||
if (isset($selected) && ($selected != '')) {
|
||||
$selected = !empty($typeSettings['modules_' . $scope]) ? $typeSettings['modules_' . $scope] : '';
|
||||
$selected = explode(',', $selected);
|
||||
}
|
||||
else {
|
||||
$selected = array();
|
||||
}
|
||||
$sortedAvailable = array();
|
||||
for ($i = 0; $i < sizeof($available); $i++) {
|
||||
$sortedAvailable[$available[$i]] = getModuleAlias($available[$i], $scope);
|
||||
|
@ -340,7 +335,7 @@ function config_showAccountModules($scope, $title, &$container) {
|
|||
$availDiv->setCSSClasses(array('confModList'));
|
||||
$container->addElement($availDiv, true);
|
||||
}
|
||||
$positions = '';
|
||||
$positions = array();
|
||||
for ($i = 0; $i < sizeof($selOptions); $i++) {
|
||||
$positions[] = $i;
|
||||
}
|
||||
|
@ -365,8 +360,8 @@ function checkInput() {
|
|||
for ($t = 0; $t < sizeof($accountTypes); $t++) {
|
||||
$scope = $accountTypes[$t];
|
||||
$available = getAvailableModules($scope, true);
|
||||
$selected_temp = $typeSettings['modules_' . $scope];
|
||||
if (isset($selected_temp)) $selected_temp = explode(',', $selected_temp);
|
||||
$selected_temp = (isset($typeSettings['modules_' . $scope])) ? $typeSettings['modules_' . $scope] : '';
|
||||
$selected_temp = explode(',', $selected_temp);
|
||||
$selected = array();
|
||||
// only use available modules as selected
|
||||
for ($i = 0; $i < sizeof($selected_temp); $i++) {
|
||||
|
|