This file contains 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
/** | |
* Please use this file at your own risk. I don't provide the support for it. | |
* Any suggestion or problem are welcomed to report here :) | |
*/ | |
/** | |
* Usage: | |
* 1. Log-in as an group admin in the desktop | |
* 2. Go to your group pending list like: https://www.facebook.com/groups/[group-id]/pending/ | |
* 3. Insert the following code to your browser console. See the guide: https://developer.chrome.com/devtools/docs/console |
This file contains 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
$(function() { | |
$("input,textarea").jqBootstrapValidation({ | |
preventSubmit: true, | |
submitError: function($form, event, errors) { | |
// additional error messages or events | |
}, | |
submitSuccess: function($form, event) { | |
// Prevent spam click and default submit behaviour | |
$("#btnSubmit").attr("disabled", true); |