mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 11:04:41 -04:00
Minor tweaks
This commit is contained in:
parent
c43dd4b15e
commit
7aba027896
@ -82,8 +82,7 @@ class Handler extends ExceptionHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($e instanceof TokenMismatchException) {
|
if ($e instanceof TokenMismatchException) {
|
||||||
// prevent loop since the page auto-submits
|
if (! in_array($request->path(), ['get_started', 'save_sidebar_state'])) {
|
||||||
if ($request->path() != 'get_started' && $request->path() != 'save_sidebar_state') {
|
|
||||||
// https://gist.github.com/jrmadsen67/bd0f9ad0ef1ed6bb594e
|
// https://gist.github.com/jrmadsen67/bd0f9ad0ef1ed6bb594e
|
||||||
return redirect()
|
return redirect()
|
||||||
->back()
|
->back()
|
||||||
|
@ -257,7 +257,10 @@
|
|||||||
data: data,
|
data: data,
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
redirectToPayment();
|
redirectToPayment();
|
||||||
}
|
},
|
||||||
|
error: function(response) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user