mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-19 16:01:34 +02:00
Minor tweaks
This commit is contained in:
parent
c43dd4b15e
commit
7aba027896
@ -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()
|
||||
|
@ -257,7 +257,10 @@
|
||||
data: data,
|
||||
success: function(response) {
|
||||
redirectToPayment();
|
||||
}
|
||||
},
|
||||
error: function(response) {
|
||||
// TODO
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user