From 0fa6b21504e13fb8997eec6961623c7ab52be733 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 13 Apr 2008 10:20:09 +0000 Subject: [PATCH] add a tr- for just the select bit of a selectlayers... --- httemplate/elements/selectlayers.html | 17 +++++++++++++---- httemplate/elements/tr-selectlayers-select.html | 1 + 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 httemplate/elements/tr-selectlayers-select.html diff --git a/httemplate/elements/selectlayers.html b/httemplate/elements/selectlayers.html index 4496892ff..302621775 100644 --- a/httemplate/elements/selectlayers.html +++ b/httemplate/elements/selectlayers.html @@ -50,13 +50,15 @@ Example: # ("what" is the element) 'js_only' => 0, #set true to return only the JS portions 'html_only' => 0, #set true to return only the HTML portions + 'select_only' => 0, #set true to return only the +% } +% unless ( grep $opt{$_}, qw(js_only select_only layers_only) ) { + <% ref($between) ? &{$between}($key) : $between %> +% } +% +% unless ( grep $opt{$_}, qw(js_only select_only) ) { + % foreach my $layer ( keys %$options ) {
1 ) %> -- 2.11.0