diff options
| author | Uwe Tews <uwe.tews@googlemail.com> | 2014-11-04 18:59:57 +0100 |
|---|---|---|
| committer | Uwe Tews <uwe.tews@googlemail.com> | 2014-11-04 18:59:57 +0100 |
| commit | 963e5dae5e74fda5447c50efe452d697fd9f43dc (patch) | |
| tree | 0dfa2e9dc70d83defe294d86b8fe5d0b85321e09 /libs/debug.tpl | |
| parent | 158b7be58a873cbc335f3de0a03778f9128cdf7b (diff) | |
| download | smarty-963e5dae5e74fda5447c50efe452d697fd9f43dc.tar.gz smarty-963e5dae5e74fda5447c50efe452d697fd9f43dc.tar.bz2 smarty-963e5dae5e74fda5447c50efe452d697fd9f43dc.zip | |
new $smarty->debug options
- new feature $smarty->debug = true; => overwrite existing Debug Console
window (old behaviour)
$smarty->debug = 2; => individual Debug Console window by template name
Diffstat (limited to 'libs/debug.tpl')
| -rw-r--r-- | libs/debug.tpl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/debug.tpl b/libs/debug.tpl index 9ef8205a..c414496a 100644 --- a/libs/debug.tpl +++ b/libs/debug.tpl @@ -152,7 +152,8 @@ </html> {/capture} <script type="text/javascript"> - {$id = $template_name|default:''|md5} + {$id = ''} + {if $display_mode}{$id = $template_name|md5}{/if} _smarty_console = window.open("", "console{$id}", "width=680,height=600,resizable,scrollbars=yes"); _smarty_console.document.write("{$debug_output|escape:'javascript' nofilter}"); _smarty_console.document.close(); |
