-implemented UI changes for Now Playing page
This commit is contained in:
parent
d534f22ce4
commit
8f48544bb7
8 changed files with 1969 additions and 958 deletions
|
@ -1,39 +1,45 @@
|
|||
var AIRTIME = (function(AIRTIME){
|
||||
var mod,
|
||||
DEFAULT_CLASS = 'ui-button ui-state-default',
|
||||
DISABLED_CLASS = 'ui-state-disabled';
|
||||
|
||||
if (AIRTIME.button === undefined) {
|
||||
AIRTIME.button = {};
|
||||
}
|
||||
mod = AIRTIME.button;
|
||||
|
||||
mod.isDisabled = function(c) {
|
||||
var button = $("."+c);
|
||||
|
||||
if (button.hasClass(DISABLED_CLASS)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
mod.enableButton = function(c) {
|
||||
var button = $("."+c);
|
||||
|
||||
if (button.hasClass(DISABLED_CLASS)) {
|
||||
button.removeClass(DISABLED_CLASS);
|
||||
}
|
||||
};
|
||||
var AIRTIME = (function(AIRTIME) {
|
||||
var mod, DEFAULT_CLASS = 'ui-button ui-state-default', DISABLED_CLASS = 'ui-state-disabled';
|
||||
|
||||
if (AIRTIME.button === undefined) {
|
||||
AIRTIME.button = {};
|
||||
}
|
||||
mod = AIRTIME.button;
|
||||
|
||||
mod.isDisabled = function(c) {
|
||||
var button = $("." + c);
|
||||
|
||||
if (button.hasClass(DISABLED_CLASS)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
mod.enableButton = function(c, useParent) {
|
||||
if (useParent) {
|
||||
var button = $("." + c).parent();
|
||||
} else {
|
||||
var button = $("." + c);
|
||||
}
|
||||
|
||||
if (button.hasClass(DISABLED_CLASS)) {
|
||||
button.removeClass(DISABLED_CLASS);
|
||||
}
|
||||
};
|
||||
|
||||
mod.disableButton = function(c, useParent) {
|
||||
if (useParent) {
|
||||
var button = $("." + c).parent();
|
||||
} else {
|
||||
var button = $("." + c);
|
||||
}
|
||||
|
||||
if (!button.hasClass(DISABLED_CLASS)) {
|
||||
button.addClass(DISABLED_CLASS);
|
||||
}
|
||||
};
|
||||
|
||||
return AIRTIME;
|
||||
|
||||
mod.disableButton = function(c) {
|
||||
var button = $("."+c);
|
||||
|
||||
if (!button.hasClass(DISABLED_CLASS)) {
|
||||
button.addClass(DISABLED_CLASS);
|
||||
}
|
||||
};
|
||||
|
||||
return AIRTIME;
|
||||
|
||||
}(AIRTIME || {}));
|
Loading…
Add table
Add a link
Reference in a new issue