mirror of https://github.com/gorhill/uBlock.git
disabling button immediately: this fixes #999
This commit is contained in:
parent
d660604b8d
commit
eafd03855f
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue