Revision 047a0b57
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
bin/mozilla/am.pl | ||
---|---|---|
3230 | 3230 |
|
3231 | 3231 |
AM->get_all_warehouses(\%myconfig, $form); |
3232 | 3232 |
|
3233 |
my $previous; |
|
3234 |
foreach my $current (@{ $form->{WAREHOUSES} }) { |
|
3235 |
if ($previous) { |
|
3236 |
$previous->{next_id} = $current->{id}; |
|
3237 |
$current->{previous_id} = $previous->{id}; |
|
3238 |
} |
|
3239 |
|
|
3240 |
$previous = $current; |
|
3241 |
} |
|
3242 |
|
|
3243 | 3233 |
$form->{callback} = build_std_url('action=list_warehouses'); |
3244 | 3234 |
$form->{title} = $locale->text('Warehouses'); |
3245 | 3235 |
$form->{url_base} = build_std_url('callback'); |
... | ... | |
3272 | 3262 |
$main::lxdebug->leave_sub(); |
3273 | 3263 |
} |
3274 | 3264 |
|
3275 |
sub swap_warehouses { |
|
3276 |
$main::lxdebug->enter_sub(); |
|
3277 |
|
|
3278 |
my $form = $main::form; |
|
3279 |
my %myconfig = %main::myconfig; |
|
3280 |
|
|
3281 |
$main::auth->assert('config'); |
|
3282 |
|
|
3283 |
AM->swap_sortkeys(\%myconfig, $form, 'warehouse'); |
|
3284 |
list_warehouses(); |
|
3285 |
|
|
3286 |
$main::lxdebug->leave_sub(); |
|
3287 |
} |
|
3288 |
|
|
3289 | 3265 |
sub delete_warehouse { |
3290 | 3266 |
$main::lxdebug->enter_sub(); |
3291 | 3267 |
|
Auch abrufbar als: Unified diff
Sortieren von Lagerhäusern auf Drag-n-Drop & AJAX mittels jQuery UI Sortable umgestellt