1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02:00

Minor tweaks

This commit is contained in:
Hillel Coren 2017-03-21 10:13:48 +02:00
parent c43dd4b15e
commit 7aba027896
2 changed files with 5 additions and 3 deletions

View File

@ -82,8 +82,7 @@ class Handler extends ExceptionHandler
}
if ($e instanceof TokenMismatchException) {
// prevent loop since the page auto-submits
if ($request->path() != 'get_started' && $request->path() != 'save_sidebar_state') {
if (! in_array($request->path(), ['get_started', 'save_sidebar_state'])) {
// https://gist.github.com/jrmadsen67/bd0f9ad0ef1ed6bb594e
return redirect()
->back()

View File

@ -257,7 +257,10 @@
data: data,
success: function(response) {
redirectToPayment();
}
},
error: function(response) {
// TODO
}
});
}