button-loader
A jquery plugin which add loading indicators into buttons
Instructions
You will need to include both the jquery.buttonLoader.js and buttonLoader.css along with bootstrap.css and font-awesome.css
HTML
The buttons or links that should have the loading indication must be given the class "has-spinner". Below is an example of a button and a link which have loading indication.
<button class="btn btn-primary my-btn has-spinner">Button01</button> <a class="btn btn-primary my-btn has-spinner">Button02</a>
Jquery
To start loading
$('.my-btn').buttonLoader('start');
To stop loading
$('.my-btn').buttonLoader('stop');