diff --git a/livesupport/modules/htmlUI/var/formmask/general.inc.php b/livesupport/modules/htmlUI/var/formmask/general.inc.php index e38dddcee..4a37d2857 100755 --- a/livesupport/modules/htmlUI/var/formmask/general.inc.php +++ b/livesupport/modules/htmlUI/var/formmask/general.inc.php @@ -428,5 +428,95 @@ $ui_fmask = array( 'hu' => 'Hungarian', ) ) + ), + 'PL.changeTransition' => array( + 'transition' => array( + array( + 'element' => 'type', + 'type' => 'radio', + 'label' => 'Type', + 'options' => array( + 'fadeX' => 'Crossfade', + 'pause' => 'Pause' + ), + 'default' => 'fadeX' + ) + ), + 'fadeIn' => array( + array( + 'element' => 'type', + 'type' => 'radio', + 'label' => 'Type', + 'options' => array('fadeIn' => 'Fade in'), + 'default' => 'fadeIn' + ) + ), + 'fadeOut' => array( + array( + 'element' => 'type', + 'type' => 'radio', + 'label' => 'Type', + 'options' => array('fadeOut' => 'Fade out'), + 'default' => 'fadeOut' + ) + ), + 'all' => array( + array( + 'element' => 'act', + 'type' => 'hidden', + 'constant' => 'PL.changeTransition' + ), + array( + 'element' => 'id', + 'type' => 'hidden' + ), + array( + 'element' => 'duration', + 'type' => 'text', + 'rule' => 'numeric', + 'attributes'=> array('size' => 4, 'maxlength' => 4), + 'groupit' => TRUE + ), + array( + 'element' => 'switchdown', + 'type' => 'button', + 'label' => '-', + 'attributes'=> array('onClick' => 'switchDown()'), + 'groupit' => TRUE + ), + array( + 'element' => 'switchup', + 'type' => 'button', + 'label' => '+', + 'attributes'=> array('onClick' => 'switchUp()'), + 'groupit' => TRUE + ), + array( + 'group' => array('duration', 'switchdown', 'switchup'), + 'label' => 'Duration' + ), + array( + 'element' => 'cancel', + 'type' => 'button', + 'label' => 'Cancel', + 'attributes'=> array('onClick' => 'window.close()'), + 'groupit' => TRUE, + ), + array( + 'element' => 'reset', + 'type' => 'reset', + 'label' => 'Reset', + 'groupit' => TRUE, + ), + array( + 'element' => 'submit', + 'type' => 'submit', + 'label' => 'Submit', + 'groupit' => TRUE, + ), + array( + 'group' => array('cancel', 'reset', 'submit') + ) + ) ) -); +); diff --git a/livesupport/modules/htmlUI/var/html/ui_browser.php b/livesupport/modules/htmlUI/var/html/ui_browser.php index b911f5c1f..9531bcd08 100644 --- a/livesupport/modules/htmlUI/var/html/ui_browser.php +++ b/livesupport/modules/htmlUI/var/html/ui_browser.php @@ -40,6 +40,11 @@ if (is_array($_REQUEST['popup'])){ $Smarty->assign('target', 'PL.simpleManagement'); $Smarty->display('popup/_redirector.tpl'); break; + + case "PL.changeTransition"; + $Smarty->assign('dynform', $uiBrowser->PLAYLIST->changeTransitionForm($_REQUEST['id'], $_REQUEST['type'], $ui_fmask['PL.changeTransition'])); + $Smarty->display('popup/PL.changeTransition.tpl'); + break; } } die(); diff --git a/livesupport/modules/htmlUI/var/html/ui_handler.php b/livesupport/modules/htmlUI/var/html/ui_handler.php index bd413bd27..3a724ab6d 100644 --- a/livesupport/modules/htmlUI/var/html/ui_handler.php +++ b/livesupport/modules/htmlUI/var/html/ui_handler.php @@ -182,6 +182,11 @@ switch($_REQUEST['act']){ $uiHandler->PLAYLIST->setReload(); break; + case "PL.changeTransition": + $uiHandler->PLAYLIST->changeTransition($_REQUEST['id'], $_REQUEST['type'], $_REQUEST['duration']); + $uiHandler->PLAYLIST->setReload(); + break; + default: $_SESSION["alertMsg"] = tra("Unknown method: $1", $_REQUEST["act"]); header("Location: ".UI_BROWSER.'?popup[]=_reload_parent&popup[]=_close'); diff --git a/livesupport/modules/htmlUI/var/templates/playlist/editor.tpl b/livesupport/modules/htmlUI/var/templates/playlist/editor.tpl index 868c20b5f..eeb4af445 100755 --- a/livesupport/modules/htmlUI/var/templates/playlist/editor.tpl +++ b/livesupport/modules/htmlUI/var/templates/playlist/editor.tpl @@ -3,14 +3,27 @@ {PL->getFlat assign='FLAT'} {foreach from=$FLAT item='i'} - {* {uiBrowser->_niceTime p1=$i.playlength assign='nicelength'} *} -