[freeside-commits] freeside/httemplate/elements selectlayers.html, 1.1, 1.2

Ivan,,, ivan at wavetail.420.am
Sun Apr 13 03:20:11 PDT 2008


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv10664

Modified Files:
	selectlayers.html 
Log Message:
add a tr- for just the select bit of a selectlayers...

Index: selectlayers.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/selectlayers.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- selectlayers.html	1 Aug 2007 22:25:09 -0000	1.1
+++ selectlayers.html	13 Apr 2008 10:20:09 -0000	1.2
@@ -50,13 +50,15 @@
                           # ("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 <SELECT> HTML
+    'layers_only'  => 0, #set true to return only the layers <DIV> HTML
   )
 
 </%doc>
-% unless ( $opt{html_only} || $opt{js_only} ) {
+% unless ( grep $opt{$_}, qw(html_only js_only select_only layers_only) ) {
     <SCRIPT TYPE="text/javascript">
 % }
-% unless ( $opt{html_only} ) {
+% unless ( grep $opt{$_}, qw(html_only select_only layers_only) ) {
       //alert('start function define');
       function <% $key %>changed(what) {
 
@@ -86,11 +88,11 @@
       }
       //alert('end function define');
 % }
-% unless ( $opt{html_only} || $opt{js_only} ) {
+% unless ( grep $opt{$_}, qw(html_only js_only select_only layers_only) ) {
     </SCRIPT>
 % }
 %
-% unless ( $opt{js_only} ) {
+% unless ( grep $opt{$_}, qw(js_only layers_only) ) {
 
     <SELECT NAME          = "<% $key %>"
             ID            = "<% $key %>"
@@ -109,8 +111,15 @@
 
     </SELECT>
 
+% }
+% 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 ) {
 
       <DIV ID="<% $key %>d<% $layer %>"



More information about the freeside-commits mailing list