Button does not remove disabled on page refresh
Created by: paulrose
When the state of a button is changed there is an error if the page is refreshed without resetting the button.
This has happened when I have been in development an AJAX call has failed for whatever reason and the button state not reset. The page gets refreshed with the latest code changes but the button still has a 'disabled' attribute. A solution would be calling something like this when loading the page:
$(document).ready('bootstrap_buttons', function() {
$('.btn').button('reset');
});
But would be better if the script did this automatically to have buttons in their correct state at page load.