Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Commit f958f9b

Browse files
committed
need to care about the number of rules too
1 parent 6e69669 commit f958f9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/rulemanager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ function updateButtons() {
630630
var notOneDeletion = $('.todelete').length === 0;
631631
$('#commitAll').prop("disabled", notOneTemporary && notOneDeletion);
632632
$('#revertAll').prop("disabled", notOneTemporary);
633-
$('#removeAll').prop("disabled", $('.scope').length <= 1);
633+
$('#removeAll').prop("disabled", $('.scope').length <= 1 && $('.rule').length === 0);
634634
}
635635

636636
/******************************************************************************/

0 commit comments

Comments
 (0)