can get cues/fades to display in new playlist builder.
cannot change them yet.
This commit is contained in:
parent
3674989461
commit
8887ce24d1
6 changed files with 97 additions and 14 deletions
|
@ -2,6 +2,12 @@
|
|||
//Side Playlist Functions
|
||||
//--------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
function setEditorContent(json) {
|
||||
$("#spl_editor")
|
||||
.empty()
|
||||
.append(json.html);
|
||||
}
|
||||
|
||||
function highlightActive(el) {
|
||||
$("#spl_sortable")
|
||||
.find(".ui-state-active")
|
||||
|
@ -13,13 +19,29 @@ function highlightActive(el) {
|
|||
function openFadeEditor(event) {
|
||||
event.stopPropagation();
|
||||
|
||||
var pos, url;
|
||||
|
||||
pos = $(this).attr("id").split("_").pop();
|
||||
url = '/Playlist/set-fade/format/json';
|
||||
url = url + '/pos/' + pos;
|
||||
|
||||
highlightActive(this);
|
||||
|
||||
$.get(url, setEditorContent);
|
||||
}
|
||||
|
||||
function openCueEditor(event) {
|
||||
event.stopPropagation();
|
||||
|
||||
var pos, url;
|
||||
|
||||
pos = $(this).attr("id").split("_").pop();
|
||||
url = '/Playlist/set-cue/format/json';
|
||||
url = url + '/pos/' + pos;
|
||||
|
||||
highlightActive(this);
|
||||
|
||||
$.get(url, setEditorContent);
|
||||
}
|
||||
|
||||
function setSPLContent(json) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue