Skip to content

Commit 8749e11

Browse files
committed
added generic error message handler
1 parent 44313c4 commit 8749e11

File tree

1 file changed

+13
-0
lines changed
  • openid-connect-server-webapp/src/main/webapp/resources/js

1 file changed

+13
-0
lines changed

openid-connect-server-webapp/src/main/webapp/resources/js/admin.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,19 @@ var ErrorHandlerView = Backbone.View.extend({
406406
'show': true
407407
});
408408
}
409+
},
410+
411+
showErrorMessage:function(header, message) {
412+
$('#modalAlert').i18n();
413+
$('#modalAlert div.modal-header').html(header);
414+
$('#modalAlert .modal-body').html(message);
415+
416+
$('#modalAlert').modal({
417+
'backdrop': 'static',
418+
'keyboard': true,
419+
'show': true
420+
});
421+
409422
}
410423
});
411424

0 commit comments

Comments
 (0)