mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-02 12:16:56 -06:00
Fixed: JavaScript type error in entitlement page
https://fedorahosted.org/freeipa/ticket/1767 Opening IPA Server/Entitlements causes: "Uncaught TypeError: Cannot call method 'addClass' of undefined" error - Details.js:489 Introduced by patch for #1697 Cause: Details facet of entitlements doesn't contain Reset and Update buttons
This commit is contained in:
parent
1785d0a7c1
commit
d02e72d3e8
@ -482,13 +482,21 @@ IPA.details_facet = function(spec) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
that.enable_update = function(value) {
|
that.enable_update = function(value) {
|
||||||
|
if(that.reset_button) {
|
||||||
if(value) {
|
if(value) {
|
||||||
that.reset_button.removeClass('action-button-disabled');
|
that.reset_button.removeClass('action-button-disabled');
|
||||||
that.update_button.removeClass('action-button-disabled');
|
|
||||||
} else {
|
} else {
|
||||||
that.reset_button.addClass('action-button-disabled');
|
that.reset_button.addClass('action-button-disabled');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(that.update_button) {
|
||||||
|
if(value) {
|
||||||
|
that.update_button.removeClass('action-button-disabled');
|
||||||
|
} else {
|
||||||
that.update_button.addClass('action-button-disabled');
|
that.update_button.addClass('action-button-disabled');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
that.load = function(data) {
|
that.load = function(data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user