CC-3463 : Usability of timeline

changing buttons to be jquery ui icons.

adding button to trim overbooked
adding button toscroll current item to top.
This commit is contained in:
Naomi Aro 2012-03-23 16:42:08 +01:00
parent 13bbdc327e
commit 711d1f202a
9 changed files with 223 additions and 150 deletions

View file

@ -8,8 +8,18 @@ var AIRTIME = (function(AIRTIME){
}
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).find("button");
var button = $("."+c);
if (button.hasClass(DISABLED_CLASS)) {
button.removeClass(DISABLED_CLASS);
@ -17,7 +27,7 @@ var AIRTIME = (function(AIRTIME){
};
mod.disableButton = function(c) {
var button = $("."+c).find("button");
var button = $("."+c);
if (!button.hasClass(DISABLED_CLASS)) {
button.addClass(DISABLED_CLASS);