[ticket/416] Add one method for moving modules horizontally

B3P-416
This commit is contained in:
Marc Alexander
2014-11-29 14:33:05 +01:00
parent 99c5b164d9
commit 3a2782b578
6 changed files with 109 additions and 145 deletions

View File

@@ -411,11 +411,11 @@ class portal_module
}
else if($action == 'move_right')
{
$this->modules_manager->move_module_right($module_id);
$this->modules_manager->move_module_horizontal($module_id, \board3\portal\portal\modules\database_handler::MOVE_DIRECTION_RIGHT);
}
else if($action == 'move_left')
{
$this->modules_manager->move_module_left($module_id);
$this->modules_manager->move_module_horizontal($module_id, \board3\portal\portal\modules\database_handler::MOVE_DIRECTION_LEFT);
}
else if ($action == 'delete')
{