diff --git a/livesupport/modules/htmlUI/var/templates/library/actionhandler.tpl b/livesupport/modules/htmlUI/var/templates/library/actionhandler.tpl index 5ef379e85..818143acd 100755 --- a/livesupport/modules/htmlUI/var/templates/library/actionhandler.tpl +++ b/livesupport/modules/htmlUI/var/templates/library/actionhandler.tpl @@ -2,22 +2,24 @@ onClick="return contextmenu('{$i.id}' , 'SP.addItem' {if $i.type|lower == 'audioclip'} - , 'listen', '{$i.gunid}' + , 'listen', '{$i.gunid}', '##audioclip##' {if $_PL_activeId} , 'PL.addItem' {else} - , 'PL.create' + , 'PL.create', '{$i.title|truncate:20}' {/if} - , 'edit', 'delete' + , 'edit', '##audioclip##' + , 'delete', '##audioclip##' {/if} {if $i.type|lower == 'webstream'} {if $_PL_activeId} , 'PL.addItem' {else} - , 'PL.create' + , 'PL.create', '{$i.title|truncate:20}' {/if} - , 'edit', 'delete' + , 'edit', '##webstream##' + , 'delete', '##webstream##' {/if} {if $i.type|lower == 'playlist'} @@ -28,7 +30,9 @@ onClick="return contextmenu('{$i.id}' , 'SCHEDULER.addPL', 'PL.addItem', 'delete' {/if} {else} - , 'SCHEDULER.addPL', 'PL.activate', 'PL.create', 'delete' + , 'SCHEDULER.addPL', 'PL.activate' + , 'PL.create', '{$i.title|truncate:20}' + , 'delete', '##playlist##' {/if} {/if} )" diff --git a/livesupport/modules/htmlUI/var/templates/scratchpad/actionhandler.tpl b/livesupport/modules/htmlUI/var/templates/scratchpad/actionhandler.tpl index 81f4867da..8bc46fc93 100755 --- a/livesupport/modules/htmlUI/var/templates/scratchpad/actionhandler.tpl +++ b/livesupport/modules/htmlUI/var/templates/scratchpad/actionhandler.tpl @@ -1,34 +1,38 @@ onClick="return contextmenu('{$i.id}' , 'SP.removeItem' - {if $i.type == 'audioclip'} - , 'listen', '{$i.gunid}' + {if $i.type|lower == 'audioclip'} + , 'listen', '{$i.gunid}', '##audioclip##' {if $_PL_activeId} , 'PL.addItem' {else} - , 'PL.create' + , 'PL.create', '{$i.title|truncate:20}' {/if} - , 'edit', 'delete' + , 'edit', '##audioclip##' + , 'delete', '##audioclip##' {/if} - {if $i.type == 'webstream'} + {if $i.type|lower == 'webstream'} {if $_PL_activeId} , 'PL.addItem' {else} - , 'PL.create' + , 'PL.create', '{$i.title|truncate:20}' {/if} - , 'edit', 'delete' + , 'edit', '##webstream##' + , 'delete', '##webstream##' {/if} - {if $i.type == 'playlist'} + {if $i.type|lower == 'playlist'} {if $_PL_activeId} {if $_PL_activeId == $i.id} , 'PL.release' {elseif $PL->isAvailable($i.id) == true} - , 'SCHEDULER.addPL', 'PL.addItem', 'PL.activate', 'delete' + , 'SCHEDULER.addPL', 'PL.addItem', 'PL.activate', 'PL.delete' {/if} {elseif $PL->isAvailable($i.id) == true} - , 'SCHEDULER.addPL', 'PL.activate', 'PL.create', 'delete' + , 'SCHEDULER.addPL', 'PL.activate' + , 'PL.create', '{$i.title|truncate:20}' + , 'delete', '##playlist##' {/if} {/if} )" \ No newline at end of file diff --git a/livesupport/modules/htmlUI/var/templates/scratchpad/main.tpl b/livesupport/modules/htmlUI/var/templates/scratchpad/main.tpl index 299d6fde4..8cb689cd1 100755 --- a/livesupport/modules/htmlUI/var/templates/scratchpad/main.tpl +++ b/livesupport/modules/htmlUI/var/templates/scratchpad/main.tpl @@ -31,17 +31,17 @@ {else}
{/if} - {$i.title|truncate:14:'...':true} + {$i.title|truncate:18}
{else} - {$i.title|truncate:14:'...':true} + {$i.title|truncate:18} {/if} {* on some reason object call doesn´t like usage of array *} {assign var="_duration" value=$i.duration} {niceTime in=$_duration} {if $PL->isAvailable($i.id) == false}
- {$i.type|capitalize}
+ {$i.type|capitalize} {else} {$i.type|capitalize} {/if} diff --git a/livesupport/modules/htmlUI/var/templates/script/contextmenu.js.tpl b/livesupport/modules/htmlUI/var/templates/script/contextmenu.js.tpl index 7659d8c02..d0b8c1352 100755 --- a/livesupport/modules/htmlUI/var/templates/script/contextmenu.js.tpl +++ b/livesupport/modules/htmlUI/var/templates/script/contextmenu.js.tpl @@ -45,7 +45,7 @@ break; case "PL.create": - contextmenuHtml = contextmenuHtml + "
  •  ##New Playlist using this File## 
  • "; + contextmenuHtml = contextmenuHtml + "
  •  ##New Playlist including "##"+contextmenu.arguments[++i]+"" 
  • "; break; case "PL.changeFadeIn": @@ -69,16 +69,17 @@ break; case "listen": - i++; - contextmenuHtml = contextmenuHtml + "
  •  ##Listen to File## 
  • "; + contextmenuHtml = contextmenuHtml + "
  •  ##Listen ## "+contextmenu.arguments[++i]+" 
  • "; break; case "edit": - contextmenuHtml = contextmenuHtml + "
  •  ##Edit File## 
  • "; + i++; + contextmenuHtml = contextmenuHtml + "
  •  ##Edit## "+contextmenu.arguments[i]+" 
  • "; break; case "delete": - contextmenuHtml = contextmenuHtml + "
  •  ##Delete File## 
  • "; + i++; + contextmenuHtml = contextmenuHtml + "
  •  ##Delete## "+contextmenu.arguments[i]+" 
  • "; break; case "fileList":