diff --git a/livesupport/modules/htmlUI/var/formmask/general.inc.php b/livesupport/modules/htmlUI/var/formmask/general.inc.php index 63a7a1691..8b2921f05 100755 --- a/livesupport/modules/htmlUI/var/formmask/general.inc.php +++ b/livesupport/modules/htmlUI/var/formmask/general.inc.php @@ -564,14 +564,14 @@ $ui_fmask = array( 'element' => 'switchdown', 'type' => 'button', 'label' => '-', - 'attributes'=> array('onClick' => 'switchDown()'), + 'attributes'=> array('onClick' => 'pl_switchDown()', 'onMousedown' => 'pl_start("Down")', 'onMouseUp' => "pl_stop()", 'onMouseOut' => "pl_stop()"), 'groupit' => TRUE ), array( 'element' => 'switchup', 'type' => 'button', 'label' => '+', - 'attributes'=> array('onClick' => 'switchUp()'), + 'attributes'=> array('onClick' => 'pl_switchUp()', 'onMousedown' => 'pl_start("Up")', 'onMouseUp' => "pl_stop()", 'onMouseOut' => "pl_stop()"), 'groupit' => TRUE ), array( diff --git a/livesupport/modules/htmlUI/var/html/ui_browser.php b/livesupport/modules/htmlUI/var/html/ui_browser.php index 920409b65..886d3c53b 100644 --- a/livesupport/modules/htmlUI/var/html/ui_browser.php +++ b/livesupport/modules/htmlUI/var/html/ui_browser.php @@ -43,7 +43,7 @@ if (is_array($_REQUEST['popup'])){ case "PL.changeTransition"; $Smarty->assign('dynform', $uiBrowser->PLAYLIST->changeTransitionForm($_REQUEST['id'], $_REQUEST['type'], $ui_fmask['PL.changeTransition'])); - $Smarty->display('popup/PL.changeTransition.tpl'); + $Smarty->display('playlist/changeTransition.tpl'); break; } } diff --git a/livesupport/modules/htmlUI/var/html/ui_handler.php b/livesupport/modules/htmlUI/var/html/ui_handler.php index 412c4f5e8..fa28597ef 100644 --- a/livesupport/modules/htmlUI/var/html/ui_handler.php +++ b/livesupport/modules/htmlUI/var/html/ui_handler.php @@ -173,18 +173,15 @@ switch($_REQUEST['act']){ break; case "PL.activate": - $uiHandler->PLAYLIST->setReload(); - if ($uiHandler->PLAYLIST->activate($_REQUEST['id']) === TRUE) { + if ($uiHandler->PLAYLIST->activate($_REQUEST['id']) === TRUE) $uiHandler->SCRATCHPAD->addItem($_REQUEST['id']); - } + $uiHandler->PLAYLIST->setReload(); break; case "PL.create": - $uiHandler->PLAYLIST->setReload(); - if (($ui_tmpid = $uiHandler->PLAYLIST->create($_REQUEST['id'])) !== FALSE) { + if (($ui_tmpid = $uiHandler->PLAYLIST->create($_REQUEST['id'])) !== FALSE) $uiHandler->SCRATCHPAD->addItem($ui_tmpid); - } - + $uiHandler->PLAYLIST->setReload(); break; case "PL.addItem": @@ -203,7 +200,8 @@ switch($_REQUEST['act']){ break; case "PL.save": - $uiHandler->PLAYLIST->save(); + if (($ui_tmpid = $uiHandler->PLAYLIST->save()) !== FALSE) + $uiHandler->SCRATCHPAD->addItem($ui_tmpid); $uiHandler->PLAYLIST->setReload(); break; @@ -217,12 +215,17 @@ switch($_REQUEST['act']){ $uiHandler->PLAYLIST->setReload(); break; + case "PL.moveItem": + $uiHandler->PLAYLIST->moveItem($_REQUEST['id'], $_REQUEST['pos']); + $uiHandler->PLAYLIST->setReload(); + break; + case "SCHEDULER.set": $uiHandler->SCHEDULER->set($_REQUEST); $uiHandler->SCHEDULER->setReload(); break; - case "SCHEDULER.uploadPlaylistMethod": + case "SCHEDULER.uploadPlaylistMethod": $uiHandler->SCHEDULER->uploadPlaylistMethod($_REQUEST); $uiHandler->SCHEDULER->setReload(); break; diff --git a/livesupport/modules/htmlUI/var/templates/playlist/editor.tpl b/livesupport/modules/htmlUI/var/templates/playlist/editor.tpl index 6366fe34e..835a28129 100755 --- a/livesupport/modules/htmlUI/var/templates/playlist/editor.tpl +++ b/livesupport/modules/htmlUI/var/templates/playlist/editor.tpl @@ -2,7 +2,7 @@