From e434df240cb280f430e30db2e84d6022e2c1380c Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sat, 22 Oct 2016 13:20:48 +0200 Subject: [PATCH] (mvc) remove incomplete error handling, was superseded https://github.com/opnsense/core/commit/22701ee038722408a8d21916dbb6ee13023a39dd#diff-755c67cb284868a802a88a873c75038c closes https://github.com/opnsense/core/issues/1234 --- src/opnsense/www/js/opnsense_ui.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/opnsense/www/js/opnsense_ui.js b/src/opnsense/www/js/opnsense_ui.js index 5a99a82b0..0de0b59ef 100644 --- a/src/opnsense/www/js/opnsense_ui.js +++ b/src/opnsense/www/js/opnsense_ui.js @@ -81,18 +81,7 @@ function saveFormToEndpoint(url,formid,callback_ok, disable_dialog) { // execute callback function callback_ok(); } - - } else { - // error handling, show internal errors - // Normally the form should only return validation issues, if other things go wrong throw an error. - BootstrapDialog.show({ - type: BootstrapDialog.TYPE_ERROR, - title: 'save', - message: 'Unable to save data, an internal error occurred.
' + - 'Response from server was:
'+JSON.stringify(data)+'' - }); } - }); }