For example the mod_dialogs "globals.DIALOGS.showErrorDialog()". Seems that Servoy doesn't recognizes the return values. Is this a bug or do I need to adjust the code?
- Code: Select all
var DIALOGS = new function() {
/**
* Show an error dialog
*
* @param {String} title
* @param {String} message
* @param {...String} buttons
* @return {String}
*
* @SuppressWarnings(wrongparameters)
*/
this.showErrorDialog = function(title, message, buttons) {
if (application.getApplicationType() == APPLICATION_TYPES.NG_CLIENT) {
return plugins.dialogs.showErrorDialog(title, message, getButtons(arguments));
}
return showDialog('dialogs_message', 'error', arguments, 'dialogs_icon_error');
}
}