mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-16 03:34:06 +00:00
Cookie Manager: "remove cookie" and "remove site" should disable with un-selection
bug 202324, patch by mconnor@myrealbox.com, r=mvl, sr=alecf
This commit is contained in:
parent
90503e21f4
commit
70f275f05b
@ -309,6 +309,7 @@ function CookieSelected() {
|
||||
if (selections.length) {
|
||||
document.getElementById("removeCookie").removeAttribute("disabled");
|
||||
} else {
|
||||
document.getElementById("removeCookie").setAttribute("disabled", "true");
|
||||
ClearCookieProperties();
|
||||
return true;
|
||||
}
|
||||
@ -503,7 +504,7 @@ function loadPermissions() {
|
||||
|
||||
// disable "remove all" button if there are no cookies/images
|
||||
if (permissions.length == 0) {
|
||||
document.getElementById("removeAllPermissions").setAttribute("disabled","true");
|
||||
document.getElementById("removeAllPermissions").setAttribute("disabled", "true");
|
||||
} else {
|
||||
document.getElementById("removeAllPermissions").removeAttribute("disabled");
|
||||
}
|
||||
@ -512,9 +513,10 @@ function loadPermissions() {
|
||||
|
||||
function PermissionSelected() {
|
||||
var selections = GetTreeSelections(permissionsTree);
|
||||
if (selections.length) {
|
||||
if (selections.length)
|
||||
document.getElementById("removePermission").removeAttribute("disabled");
|
||||
}
|
||||
else
|
||||
document.getElementById("removePermission").setAttribute("disabled", "true");
|
||||
}
|
||||
|
||||
function DeletePermission() {
|
||||
|
@ -309,6 +309,7 @@ function CookieSelected() {
|
||||
if (selections.length) {
|
||||
document.getElementById("removeCookie").removeAttribute("disabled");
|
||||
} else {
|
||||
document.getElementById("removeCookie").setAttribute("disabled", "true");
|
||||
ClearCookieProperties();
|
||||
return true;
|
||||
}
|
||||
@ -503,7 +504,7 @@ function loadPermissions() {
|
||||
|
||||
// disable "remove all" button if there are no cookies/images
|
||||
if (permissions.length == 0) {
|
||||
document.getElementById("removeAllPermissions").setAttribute("disabled","true");
|
||||
document.getElementById("removeAllPermissions").setAttribute("disabled", "true");
|
||||
} else {
|
||||
document.getElementById("removeAllPermissions").removeAttribute("disabled");
|
||||
}
|
||||
@ -512,9 +513,10 @@ function loadPermissions() {
|
||||
|
||||
function PermissionSelected() {
|
||||
var selections = GetTreeSelections(permissionsTree);
|
||||
if (selections.length) {
|
||||
if (selections.length)
|
||||
document.getElementById("removePermission").removeAttribute("disabled");
|
||||
}
|
||||
else
|
||||
document.getElementById("removePermission").setAttribute("disabled", "true");
|
||||
}
|
||||
|
||||
function DeletePermission() {
|
||||
|
Loading…
Reference in New Issue
Block a user