add new block dialog to scheduler
This commit is contained in:
parent
468ff5411b
commit
4bb88e2590
@ -733,7 +733,7 @@
|
|||||||
for (var i = 0; i < tags.program.length; i++) {
|
for (var i = 0; i < tags.program.length; i++) {
|
||||||
// tags for program itself
|
// tags for program itself
|
||||||
const enabled_class = tags.program[i]['enabled'] === 'true' ? 'enabled' : 'disabled';
|
const enabled_class = tags.program[i]['enabled'] === 'true' ? 'enabled' : 'disabled';
|
||||||
const new_span = `<span class='tag ${enabled_class}' data-id='${tags[i]['id']}'>${tags[i]['tag']}</span>`;
|
const new_span = `<span class='tag ${enabled_class}' data-id='${tags.program[i]['id']}'>${tags[i]['tag']}</span>`;
|
||||||
container.innerHTML += new_span;
|
container.innerHTML += new_span;
|
||||||
}
|
}
|
||||||
const promo_container = document.querySelector("#new_block_promos_tag");
|
const promo_container = document.querySelector("#new_block_promos_tag");
|
||||||
@ -741,7 +741,7 @@
|
|||||||
for (var i = 0; i < tags.promos.length; i++) {
|
for (var i = 0; i < tags.promos.length; i++) {
|
||||||
// tags for promos run during program
|
// tags for promos run during program
|
||||||
const enabled_class = tags.promos[i]['enabled'] === 'true' ? 'enabled' : 'disabled';
|
const enabled_class = tags.promos[i]['enabled'] === 'true' ? 'enabled' : 'disabled';
|
||||||
const new_span = `<span class='tag ${enabled_class}' data-id='${tags[i]['id']}'>${tags[i]['tag']}</span>`;
|
const new_span = `<span class='tag ${enabled_class}' data-id='${tags.promos[i]['id']}'>${tags[i]['tag']}</span>`;
|
||||||
promo_container.innerHTML += new_span;
|
promo_container.innerHTML += new_span;
|
||||||
}
|
}
|
||||||
const commercial_container = document.querySelector("#new_block_commercials_tag");
|
const commercial_container = document.querySelector("#new_block_commercials_tag");
|
||||||
@ -749,7 +749,7 @@
|
|||||||
for (var i = 0; i < tags.commercials.length; i++) {
|
for (var i = 0; i < tags.commercials.length; i++) {
|
||||||
// tags for commercials run during program
|
// tags for commercials run during program
|
||||||
const enabled_class = tags.commercials[i]['enabled'] === 'true' ? 'enabled' : 'disabled';
|
const enabled_class = tags.commercials[i]['enabled'] === 'true' ? 'enabled' : 'disabled';
|
||||||
const new_span = `<span class='tag ${enabled_class}' data-id='${tags[i]['id']}'>${tags[i]['tag']}</span>`;
|
const new_span = `<span class='tag ${enabled_class}' data-id='${tags.commercials[i]['id']}'>${tags[i]['tag']}</span>`;
|
||||||
commercial_container.innerHTML += new_span;
|
commercial_container.innerHTML += new_span;
|
||||||
}
|
}
|
||||||
const bumper_container = document.querySelector("#new_block_bumpers_tag");
|
const bumper_container = document.querySelector("#new_block_bumpers_tag");
|
||||||
@ -757,7 +757,7 @@
|
|||||||
for (var i = 0; i < tags.bumpers.length; i++) {
|
for (var i = 0; i < tags.bumpers.length; i++) {
|
||||||
// tags for bumpers run during program
|
// tags for bumpers run during program
|
||||||
const enabled_class = tags.bumpers[i]['enabled'] === 'true' ? 'enabled' : 'disabled';
|
const enabled_class = tags.bumpers[i]['enabled'] === 'true' ? 'enabled' : 'disabled';
|
||||||
const new_span = `<span class='tag ${enabled_class}' data-id='${tags[i]['id']}'>${tags[i]['tag']}</span>`;
|
const new_span = `<span class='tag ${enabled_class}' data-id='${tags.bumpers[i]['id']}'>${tags[i]['tag']}</span>`;
|
||||||
bumper_container.innerHTML += new_span;
|
bumper_container.innerHTML += new_span;
|
||||||
}
|
}
|
||||||
block_tag_editor_handlers();
|
block_tag_editor_handlers();
|
||||||
|
Loading…
Reference in New Issue
Block a user