disabling button immediately: this fixes #999

This commit is contained in:
gorhill 2015-03-12 17:25:51 -04:00
parent d660604b8d
commit eafd03855f
1 changed files with 6 additions and 4 deletions

View File

@ -384,6 +384,8 @@ var selectFilterLists = function(callback) {
/******************************************************************************/ /******************************************************************************/
var buttonApplyHandler = function() { var buttonApplyHandler = function() {
uDom('#buttonApply').removeClass('enabled');
renderBusyOverlay(true); renderBusyOverlay(true);
var onReloadDone = function() { var onReloadDone = function() {
@ -397,13 +399,13 @@ var buttonApplyHandler = function() {
selectFilterLists(onSelectionDone); selectFilterLists(onSelectionDone);
cacheWasPurged = false; cacheWasPurged = false;
uDom('#buttonApply').toggleClass('enabled', false);
}; };
/******************************************************************************/ /******************************************************************************/
var buttonUpdateHandler = function() { var buttonUpdateHandler = function() {
uDom('#buttonUpdate').removeClass('enabled');
if ( needUpdate ) { if ( needUpdate ) {
renderBusyOverlay(true); renderBusyOverlay(true);
@ -415,13 +417,13 @@ var buttonUpdateHandler = function() {
cacheWasPurged = false; cacheWasPurged = false;
} }
uDom('#buttonPurgeAll').toggleClass('enabled', false);
}; };
/******************************************************************************/ /******************************************************************************/
var buttonPurgeAllHandler = function() { var buttonPurgeAllHandler = function() {
uDom('#buttonPurgeAll').removeClass('enabled');
var onCompleted = function() { var onCompleted = function() {
cacheWasPurged = true; cacheWasPurged = true;
renderFilterLists(); renderFilterLists();