diff --git a/livesupport/modules/htmlUI/var/html/ui_browser.php b/livesupport/modules/htmlUI/var/html/ui_browser.php index 5e4d2f670..8c859b294 100644 --- a/livesupport/modules/htmlUI/var/html/ui_browser.php +++ b/livesupport/modules/htmlUI/var/html/ui_browser.php @@ -81,19 +81,21 @@ if ($uiBrowser->userid) { $Smarty->assign('uploadform', $uiBrowser->uploadFileM($ui_fmask['uploadFileM'], $uiBrowser->id)); break; + case "editItem": + $Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id)); + $Smarty->assign('editItem', array('type' => $uiBrowser->type=='webstream' ? 'webstream' : 'file', 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid)); + break; case "editFile": $Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id)); $Smarty->assign('editItem', array('type' => 'file', 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid)); break; - case "editWebstream": $Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id)); $Smarty->assign('editItem', array('type' => 'webstream', 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid)); break; - case "SEARCH": $Smarty->assign('searchForm', $uiBrowser->SEARCH->searchForm($uiBrowser->id, $ui_fmask)); $Smarty->assign('showLibrary', TRUE); diff --git a/livesupport/modules/htmlUI/var/templates/file/edit.tpl b/livesupport/modules/htmlUI/var/templates/file/edit.tpl index add79b1c7..8c7c327e4 100755 --- a/livesupport/modules/htmlUI/var/templates/file/edit.tpl +++ b/livesupport/modules/htmlUI/var/templates/file/edit.tpl @@ -1,5 +1,19 @@
{include file="sub/x.tpl"} + +

+{if $editItem.id} + Edit +{else} + New +{/if} +{if $editItem.type == 'file'} + File +{else} + Webstream +{/if} +

+ @@ -42,9 +56,15 @@ function showMData() document.getElementById('div_Data').style.visibility='hidden'; document.getElementById('div_Data').style.height='0'; } +{/literal} -document.getElementById('div_MData').style.visibility='hidden'; -document.getElementById('div_MData').style.height='0'; +{if $editItem.id} + document.getElementById('div_Data').style.visibility='hidden'; + document.getElementById('div_Data').style.height='0'; +{else} + document.getElementById('div_MData').style.visibility='hidden'; + document.getElementById('div_MData').style.height='0'; +{/if} -{/literal} + diff --git a/livesupport/modules/htmlUI/var/templates/file/objects.tpl b/livesupport/modules/htmlUI/var/templates/file/objects.tpl index eae82799e..43f3af406 100755 --- a/livesupport/modules/htmlUI/var/templates/file/objects.tpl +++ b/livesupport/modules/htmlUI/var/templates/file/objects.tpl @@ -9,7 +9,7 @@ Title Type   - {if $START.pid}[go up]{/if} + {if $START.pid}[go up]{/if} {if count($structure.listdata)} @@ -18,7 +18,7 @@ {if $i.type eq 'Folder'} - [{$i.title|truncate:30}] + [{$i.title|truncate:30}] {else} {if $_PL_activeId == $i.id} {$i.title|truncate:30} diff --git a/livesupport/modules/htmlUI/var/templates/file/path.tpl b/livesupport/modules/htmlUI/var/templates/file/path.tpl index 9e2282b0a..0f9ae6e7b 100755 --- a/livesupport/modules/htmlUI/var/templates/file/path.tpl +++ b/livesupport/modules/htmlUI/var/templates/file/path.tpl @@ -1,12 +1,13 @@ {*Smarty template*}
- [Tree view]  |  + [Tree view]  |  {foreach from=$structure.pathdata item=o} {if $o.type == 'Folder'} - [{$o.name}] / + [{$o.name}] / {else} {$o.name} {/if} {/foreach} -
\ No newline at end of file +[::new folder::] +
diff --git a/livesupport/modules/htmlUI/var/templates/file/tree.tpl b/livesupport/modules/htmlUI/var/templates/file/tree.tpl index 1b7070083..ff59efce0 100755 --- a/livesupport/modules/htmlUI/var/templates/file/tree.tpl +++ b/livesupport/modules/htmlUI/var/templates/file/tree.tpl @@ -12,7 +12,7 @@ {str_repeat str='  ' count=$o.level} {/if} {if $o.type == 'Folder'} - [{$o.name}] + [{$o.name}] {else} {$o.name} {/if} diff --git a/livesupport/modules/htmlUI/var/templates/menu_top.tpl b/livesupport/modules/htmlUI/var/templates/menu_top.tpl index 9a5597359..f60aa174d 100755 --- a/livesupport/modules/htmlUI/var/templates/menu_top.tpl +++ b/livesupport/modules/htmlUI/var/templates/menu_top.tpl @@ -4,7 +4,6 @@ [Upload] [Stream] [PL Editor] - [Create new folder] [Search] [Browse] {tra 0='[User/Groups]'} diff --git a/livesupport/modules/htmlUI/var/templates/script/contextMenue.js.tpl b/livesupport/modules/htmlUI/var/templates/script/contextMenue.js.tpl index 51b1f887f..f33637cb3 100755 --- a/livesupport/modules/htmlUI/var/templates/script/contextMenue.js.tpl +++ b/livesupport/modules/htmlUI/var/templates/script/contextMenue.js.tpl @@ -68,9 +68,17 @@ function menu(id) { menuHtml = menuHtml + " Remove from Scratchpad "; break; + case "edit": + menuHtml = menuHtml + " Edit "; + break; + case "delete": menuHtml = menuHtml + " !Delete Item! "; break; + + case "fileList": + menuHtml = menuHtml + " List Folder "; + break; } } document.getElementById('menucontainer').innerHTML = menuHeader + menuHtml + menuFooter; diff --git a/livesupport/modules/htmlUI/var/templates/sub/contextmenu.tpl b/livesupport/modules/htmlUI/var/templates/sub/contextmenu.tpl index 7576ebc64..46483f1a9 100755 --- a/livesupport/modules/htmlUI/var/templates/sub/contextmenu.tpl +++ b/livesupport/modules/htmlUI/var/templates/sub/contextmenu.tpl @@ -10,7 +10,7 @@ onContextmenu="return menu('{$i.id}' {else} , 'PL.create' {/if} - , 'delete' + , 'edit', 'delete' {/if} {if ($i.type == 'playlist')} @@ -24,6 +24,10 @@ onContextmenu="return menu('{$i.id}' , 'PL.activate', 'PL.create', 'delete' {/if} {/if} + + {if ($i.type == 'Folder')} + , 'fileList', 'delete' + {/if} {$moreContextAfter} )"