Created
December 14, 2016 04:03
-
-
Save anhnt/54f7d877415f902f3ff8e4d1024fd627 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
/** | |
* Show error message | |
* @param {jQuery} form | |
* @param {Object} config | |
* @param {String|Array} message | |
*/ | |
function showErrorMessage(form, config, message) { | |
config = getFormConfig(form, config); | |
var messageHtml = config.renderErrorMessage(message); | |
showFormMessage(form, config, messageHtml, 'Opps', 'danger', null); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment