diff --git a/livesupport/modules/htmlUI/var/html/ui_browser.php b/livesupport/modules/htmlUI/var/html/ui_browser.php index 2587c6350..b81caf5ad 100644 --- a/livesupport/modules/htmlUI/var/html/ui_browser.php +++ b/livesupport/modules/htmlUI/var/html/ui_browser.php @@ -21,6 +21,11 @@ if (is_array($_REQUEST['popup'])){ $Smarty->display('popup/_redirector.tpl'); break; + case "_2PL.editMetaData": + $Smarty->assign('target', 'PL.editMetaData'); + $Smarty->display('popup/_redirector.tpl'); + break; + case "login": $Smarty->assign('dynform', $uiBrowser->login($ui_fmask)); $Smarty->display('popup/login.tpl'); diff --git a/livesupport/modules/htmlUI/var/html/ui_handler.php b/livesupport/modules/htmlUI/var/html/ui_handler.php index 4fe16aaab..1b84920ec 100644 --- a/livesupport/modules/htmlUI/var/html/ui_handler.php +++ b/livesupport/modules/htmlUI/var/html/ui_handler.php @@ -187,7 +187,7 @@ switch($_REQUEST['act']){ if ($_REQUEST['id']) $uiHandler->SCRATCHPAD->addItem($_REQUEST['id']); $uiHandler->SCRATCHPAD->addItem($ui_tmpid); } - $uiHandler->PLAYLIST->setRedirect(); + $uiHandler->PLAYLIST->setRedirect('_2PL.editMetaData'); break; case "PL.addItem": diff --git a/livesupport/modules/htmlUI/var/templates/masterpanel.tpl b/livesupport/modules/htmlUI/var/templates/masterpanel.tpl index 29fd5bfd1..e06c8a6fa 100755 --- a/livesupport/modules/htmlUI/var/templates/masterpanel.tpl +++ b/livesupport/modules/htmlUI/var/templates/masterpanel.tpl @@ -29,36 +29,36 @@ {if $fileList} {include file="file/list.tpl"} {/if} - + {if $showLibrary} {include file="library/main.tpl"} {/if} - + {if $showSubjects} {include file="subjects.tpl"} {/if} - + {if $showFile} {include file="filedata.tpl"} {/if} - + {if $editItem} {include file="file/edit.tpl"} {/if} - + {if $changeStationPrefs} {include file="stationprefs.tpl"} {/if} - + {if $PL_simpleManagement} - {include file="playlist/simpleManagement.tpl"} + {include file="playlist/main.tpl"} {/if} - +
{if $simpleSearchForm} {include file="library/simpleSearchForm.tpl"} {/if} - + {if $SCRATCHPAD} {include file="scratchpad.tpl"} {/if} diff --git a/livesupport/modules/htmlUI/var/templates/playlist/editor.tpl b/livesupport/modules/htmlUI/var/templates/playlist/editor.tpl index 121e89067..720c81808 100755 --- a/livesupport/modules/htmlUI/var/templates/playlist/editor.tpl +++ b/livesupport/modules/htmlUI/var/templates/playlist/editor.tpl @@ -1,7 +1,7 @@
-
-

##Playlist Editor##

+ +

##Playlist Editor##: {$PL->title}

 
 
@@ -9,7 +9,7 @@
- + @@ -57,6 +57,7 @@ {/if} +
- + -{* -
- - - - -{foreach from=$PL->getFlat() key='pos' item='i'} - - - - - - - - - - -{/foreach} - {if $n} - - - - {/if} - - - - - - - - - - - - -
active Playlist: {$PL.children.0.children.0.content}
TitleDurationType
{$i.fadein_ms|string_format:"%d"} ms
- - - - - - {$i.title}{$i.duration}{$i.type}
{$i.fadeout_ms|string_format:"%d"} ms
[Remove Selected] - [Clear] -
-
-*} diff --git a/livesupport/modules/htmlUI/var/templates/playlist/main.tpl b/livesupport/modules/htmlUI/var/templates/playlist/main.tpl new file mode 100755 index 000000000..5bd239f82 --- /dev/null +++ b/livesupport/modules/htmlUI/var/templates/playlist/main.tpl @@ -0,0 +1,21 @@ +
+ +{if $PL_editMetaData} + {include file="playlist/metadata.tpl"} + +{elseif is_array($PL->get())} {* already activated Playlist *} + {include file="playlist/editor.tpl"} + +{else} {* no active Playlist *} +
+

##Playlist Editor##

+

 

+ {if $PL->reportLookedPL()} + + {else} + + {/if} +
+{/if} + +
diff --git a/livesupport/modules/htmlUI/var/templates/playlist/metadata.tpl b/livesupport/modules/htmlUI/var/templates/playlist/metadata.tpl index 6529ada7a..bb9902d00 100755 --- a/livesupport/modules/htmlUI/var/templates/playlist/metadata.tpl +++ b/livesupport/modules/htmlUI/var/templates/playlist/metadata.tpl @@ -1,5 +1,5 @@
-

##Playlist Metadata##

+

##Playlist Metadata##: {$PL->title}

{assign var="_form" value=$PL->metaDataForm($_PL.curr_langid)} {assign var="dynform" value=$_form.langswitch} diff --git a/livesupport/modules/htmlUI/var/templates/playlist/simpleManagement.tpl b/livesupport/modules/htmlUI/var/templates/playlist/simpleManagement.tpl deleted file mode 100755 index ced440bf5..000000000 --- a/livesupport/modules/htmlUI/var/templates/playlist/simpleManagement.tpl +++ /dev/null @@ -1,19 +0,0 @@ -
- -{if $PL_editMetaData} - {include file="playlist/metadata.tpl"} -{elseif is_array($PL->get())} {* already activated Playlist *} - {include file="playlist/editor.tpl"} -{else} {* no active Playlist *} - -
-

##Playlist Editor##

-

 

- {if $PL->reportLookedPL()} - - {else} - - {/if} -
-{/if} -
diff --git a/livesupport/modules/htmlUI/var/templates/popup/_redirector.tpl b/livesupport/modules/htmlUI/var/templates/popup/_redirector.tpl index 9c753964f..2aa463160 100755 --- a/livesupport/modules/htmlUI/var/templates/popup/_redirector.tpl +++ b/livesupport/modules/htmlUI/var/templates/popup/_redirector.tpl @@ -1,4 +1,8 @@ diff --git a/livesupport/modules/htmlUI/var/templates/script/contextmenu.js.tpl b/livesupport/modules/htmlUI/var/templates/script/contextmenu.js.tpl index 320e315ef..bcd28d767 100755 --- a/livesupport/modules/htmlUI/var/templates/script/contextmenu.js.tpl +++ b/livesupport/modules/htmlUI/var/templates/script/contextmenu.js.tpl @@ -6,11 +6,13 @@ ie5 = (document.getElementById && document.all && document.styleSheets) ? 1 : 0; nn6 = (document.getElementById && !document.all) ? 1 : 0; contextmenuStatus = 0; -document.onmouseup = hidecontextmenu; -document.write('
'); contextmenuWidth = 0, contextmenuHeight = 0; +document.onclick = hidecontextmenu; + +document.write('
'); + function contextmenu(param) { var contextmenuHeader = "
" + "
    "; @@ -108,7 +110,7 @@ function contextmenu(param) { } -function showcontextmenu(e) { +function showcontextmenu(e) { //alert("show:" + contextmenuStatus); if (ie5) { if (event.clientX > contextmenuWidth) xPos = event.clientX - contextmenuWidth + document.body.scrollLeft; else xPos = event.clientX + document.body.scrollLeft; @@ -123,7 +125,7 @@ function showcontextmenu(e) { } document.getElementById("contextmenu").style.left = xPos; - document.getElementById("contextmenu").style.top = yPos; + setTimeout("document.getElementById('contextmenu').style.top = yPos", 10); //document.getElementById('contextmenustyle').innerHTML = ''; contextmenuStatus = 1; @@ -131,9 +133,9 @@ function showcontextmenu(e) { } -function hidecontextmenu(e) { +function hidecontextmenu(e) { //alert("hide:" + contextmenuStatus); if (contextmenuStatus == 1) { - setTimeout("document.getElementById('contextmenu').style.top =- 250", 100); + setTimeout("document.getElementById('contextmenu').style.top =- 250", 0); contextmenuStatus = 0; } } diff --git a/livesupport/modules/htmlUI/var/ui_browser_init.php b/livesupport/modules/htmlUI/var/ui_browser_init.php index 2f182c439..d76ed978a 100644 --- a/livesupport/modules/htmlUI/var/ui_browser_init.php +++ b/livesupport/modules/htmlUI/var/ui_browser_init.php @@ -1,4 +1,5 @@ Base =& $uiBase; $this->activeId =& $_SESSION[UI_PLAYLIST_SESSNAME]['activeId']; + $this->title = $this->Base->_getMDataValue($this->activeId, UI_MDATA_KEY_TITLE); $this->token =& $_SESSION[UI_PLAYLIST_SESSNAME]['token']; $this->reloadUrl = UI_BROWSER.'?popup[]=_reload_parent&popup[]=_close'; $this->redirectUrl = UI_BROWSER.'?popup[]=_2PL.simpleManagement&popup[]=_close'; @@ -15,9 +16,12 @@ class uiPlaylist $this->Base->redirUrl = $this->reloadUrl; } - function setRedirect() + function setRedirect($target=FALSE) { - $this->Base->redirUrl = $this->redirectUrl; + if ($target!==FALSE) + $this->Base->redirUrl = UI_BROWSER."?popup[]=$target&popup[]=_close"; + else + $this->Base->redirUrl = $this->redirectUrl; } function get()