/** * FH-Complete * * @package * @author * @copyright Copyright (c) 2016 fhcomplete.org * @license GPLv3 * @link https://fhcomplete.org * @since Version 1.0.0 */ var FHC_DialogLib = { /** * Show success message as jQueryUI alert. Works only with bootstrap. * @param message */ alertSuccess: function(message) { FHC_DialogLib._displayDialog('Success', message, 'ok-sign', 'alert-success'); }, /** * Show error message as jQueryUI alert. Works only with bootstrap. * @param message */ alertError: function(message) { FHC_DialogLib._displayDialog('Error occured', message, 'warning-sign', 'alert-danger'); }, /** * Show warning message as jQueryUI alert. Works only with bootstrap. * @param message */ alertWarning: function(message) { FHC_DialogLib._displayDialog('Warning', message, 'warning-sign', 'alert-warning'); }, /** * Show info message as jQueryUI alert. Works only with bootstrap. * @param message */ alertInfo: function(message) { FHC_DialogLib._displayDialog('Info', message, 'info-sign', 'alert-info'); }, /** * Default jQueryUI alert * @param title shown as message box heading * @param html shown inside message box * @param width of the message box */ alertDefault: function(title, html, width) { var dialogdiv = $("#fhc-dialoglib-dialog"); if (dialogdiv.length) dialogdiv.remove(); var strDivDialog = "