File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed
Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,23 @@ $.ajaxSetup({
2222 }
2323 } ,
2424 dataFilter : function ( data , type ) {
25- url = JSON . parse ( data ) ;
26-
27- if ( typeof url === 'string' && url . substring ( 0 , 4 ) === 'http' ) {
28- $ ( '#toast-container .toast' ) . trigger ( 'click' ) ;
29- toastr . info ( "Loading page..." , '' , { timeOut : 0 } ) ;
30-
31- if ( window . location . href == url ) {
32- location . reload ( true ) ;
25+ try {
26+ url = JSON . parse ( data ) ;
27+
28+ if ( typeof url === 'string' && url . substring ( 0 , 4 ) === 'http' ) {
29+ $ ( '#toast-container .toast' ) . trigger ( 'click' ) ;
30+ toastr . info ( "Loading page..." , '' , { timeOut : 0 } ) ;
31+
32+ if ( window . location . href == url ) {
33+ location . reload ( true ) ;
34+ }
35+
36+ window . location . href = url ;
37+
38+ return false ;
3339 }
34-
35- window . location . href = url ;
36-
37- return false ;
40+ } catch ( exception ) {
41+
3842 }
3943
4044 return data ;
You can’t perform that action at this time.
0 commit comments