better working changing slides and serviceItems
This commit is contained in:
parent
e30ee1a53e
commit
1ed76ff3e3
3 changed files with 23 additions and 62 deletions
|
@ -181,6 +181,25 @@ Controls.Page {
|
|||
console.log("Slide changed to: " + item.name);
|
||||
}
|
||||
|
||||
function changeSlide(index) {
|
||||
console.log("index grabbed: " + index);
|
||||
const item = SlideModel.getItem(index);
|
||||
currentSlide = index;
|
||||
currentServiceItem = item.serviceItemId;
|
||||
console.log("index grabbed: " + index);
|
||||
console.log(item);
|
||||
|
||||
presentation.stopVideo();
|
||||
pWindow.stopVideo();
|
||||
/* presentation.itemType = item.type; */
|
||||
console.log("Time to start changing");
|
||||
|
||||
ServiceItemModel.activate(currentServiceItem);
|
||||
SlideObject.changeSlide(item);
|
||||
presentation.textIndex = 0;
|
||||
console.log("Slide changed to: " + index);
|
||||
}
|
||||
|
||||
function loopVideo() {
|
||||
presentation.loopVideo();
|
||||
pWindow.loopVideo();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue