-implemented UI changes for playlist/block/webstream builder
This commit is contained in:
parent
198d15adc8
commit
0524e4e5d2
11 changed files with 97 additions and 40 deletions
|
@ -16,9 +16,9 @@ var AIRTIME = (function(AIRTIME) {
|
|||
}
|
||||
|
||||
if (check === true) {
|
||||
AIRTIME.button.enableButton("icon-plus", true);
|
||||
AIRTIME.button.enableButton("btn-group #library-plus", true);
|
||||
} else {
|
||||
AIRTIME.button.disableButton("icon-plus", true);
|
||||
AIRTIME.button.disableButton("btn-group #library-plus", true);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -109,7 +109,7 @@ var AIRTIME = (function(AIRTIME) {
|
|||
.find('.icon-plus').parent()
|
||||
.click(function() {
|
||||
|
||||
if (AIRTIME.button.isDisabled('icon-plus') === true) {
|
||||
if (AIRTIME.button.isDisabled('btn-group #library-plus') === true) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -16,9 +16,9 @@ var AIRTIME = (function(AIRTIME) {
|
|||
}
|
||||
|
||||
if (check === true) {
|
||||
AIRTIME.button.enableButton("icon-plus", true);
|
||||
AIRTIME.button.enableButton("btn-group #library-plus", true);
|
||||
} else {
|
||||
AIRTIME.button.disableButton("icon-plus", true);
|
||||
AIRTIME.button.disableButton("btn-group #library-plus", true);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -121,7 +121,7 @@ var AIRTIME = (function(AIRTIME) {
|
|||
.click(
|
||||
function() {
|
||||
|
||||
if (AIRTIME.button.isDisabled('icon-plus') === true) {
|
||||
if (AIRTIME.button.isDisabled('btn-group #library-plus') === true) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ var AIRTIME = (function(AIRTIME) {
|
|||
"</ul>" +
|
||||
"</div>")
|
||||
.append("<div class='btn-group'>" +
|
||||
"<button class='btn btn-small'>" +
|
||||
"<button class='btn btn-small' id='library-plus'>" +
|
||||
"<i class='icon-white icon-plus'></i> Add to current playlist" +
|
||||
"</button>" +
|
||||
"</div>")
|
||||
|
|
|
@ -943,6 +943,7 @@ var AIRTIME = (function(AIRTIME){
|
|||
};
|
||||
|
||||
mod.init = function() {
|
||||
/*
|
||||
$.contextMenu({
|
||||
selector: '#spl_new, #ws_new',
|
||||
trigger: "left",
|
||||
|
@ -953,6 +954,10 @@ var AIRTIME = (function(AIRTIME){
|
|||
"ws": {name: "New Webstream", callback: AIRTIME.playlist.fnWsNew}
|
||||
}
|
||||
});
|
||||
*/
|
||||
$('#lib-new-pl').live('click', function(){AIRTIME.playlist.fnNew();});
|
||||
$('#lib-new-bl').live('click', function(){AIRTIME.playlist.fnNewBlock();});
|
||||
$('#lib-new-ws').live('click', function(){AIRTIME.playlist.fnWsNew();});
|
||||
/*
|
||||
$pl.delegate("#spl_new",
|
||||
{"click": AIRTIME.playlist.fnNew});*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue