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}