Skip to content
Snippets Groups Projects
Commit 797504ef authored by PavelBegunkov's avatar PavelBegunkov
Browse files

Invalid popups after changing the profile information

parent 02486791
Branches
Tags
No related merge requests found
......@@ -30,7 +30,7 @@ $(function () {
'jobPositionID': $jobs.find('option:selected').val(),
'departmentID': $departments.find('option:selected').val(),
}).always(_ => $submitButton.turnOn())
.done(Popup.success('Профиль успешно изменён!'))
.fail(Popup.error('Произошла ошибка'))
.done(() => Popup.success('Профиль успешно изменён!'))
.fail(() => Popup.error('Произошла ошибка'))
});
});
\ No newline at end of file
});
......@@ -70,6 +70,8 @@ class Controller_Handler_Settings extends Controller_Handler
if ($this->post->check())
User::instance()->changeProfile($this->post->data());
else
throw HTTP_Exception::factory(400, 'Invalid parameters');
}
public function action_getDepartmentsList() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment