CC-4466: Buttons on Now Playing page are clickable even though they are disabled
-fixed
This commit is contained in:
parent
aa3bf3941b
commit
1698aae251
5 changed files with 21 additions and 16 deletions
|
@ -6,8 +6,11 @@ var AIRTIME = (function(AIRTIME) {
|
|||
}
|
||||
mod = AIRTIME.button;
|
||||
|
||||
mod.isDisabled = function(c) {
|
||||
mod.isDisabled = function(c, useParent) {
|
||||
var button = $("." + c);
|
||||
if (useParent) {
|
||||
button = button.parent();
|
||||
}
|
||||
|
||||
if (button.hasClass(DISABLED_CLASS)) {
|
||||
return true;
|
||||
|
@ -25,6 +28,7 @@ var AIRTIME = (function(AIRTIME) {
|
|||
|
||||
if (button.hasClass(DISABLED_CLASS)) {
|
||||
button.removeClass(DISABLED_CLASS);
|
||||
button.removeAttr('disabled');
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -37,6 +41,7 @@ var AIRTIME = (function(AIRTIME) {
|
|||
|
||||
if (!button.hasClass(DISABLED_CLASS)) {
|
||||
button.addClass(DISABLED_CLASS);
|
||||
button.attr('disabled', 'disabled');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue