File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
openid-connect-server-webapp/src/main/webapp/resources/js Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -94,22 +94,7 @@ var ListWidgetChildView = Backbone.View.extend({
94
94
95
95
this . model . destroy ( {
96
96
dataType : false , processData : false ,
97
- error :function ( error , response ) {
98
- console . log ( "An error occurred when deleting from a list widget" ) ;
99
-
100
- //Pull out the response text.
101
- var responseJson = JSON . parse ( response . responseText ) ;
102
-
103
- //Display an alert with an error message
104
- $ ( '#modalAlert div.modal-header' ) . html ( responseJson . error ) ;
105
- $ ( '#modalAlert div.modal-body' ) . html ( responseJson . error_description ) ;
106
-
107
- $ ( "#modalAlert" ) . modal ( { // wire up the actual modal functionality and show the dialog
108
- "backdrop" : "static" ,
109
- "keyboard" : true ,
110
- "show" : true // ensure the modal is shown immediately
111
- } ) ;
112
- }
97
+ error :app . errorHandlerView . handleError ( )
113
98
} ) ;
114
99
115
100
} ,
You can’t perform that action at this time.
0 commit comments