]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 640987 - YUI is only used for the first tabular report when using multiple tables
authorGuy Pyrzak <guy.pyrzak@gmail.com>
Thu, 16 Jun 2011 05:42:57 +0000 (22:42 -0700)
committerGuy Pyrzak <guy.pyrzak@gmail.com>
Thu, 16 Jun 2011 05:42:57 +0000 (22:42 -0700)
r=mkanat, a=mkanat

template/en/default/reports/report-table.html.tmpl

index f1418e6a99a927611f09758f4e44b5352c260196..561d0517eaa779975f5c3b34b986abd5f5c33ba5 100644 (file)
@@ -125,7 +125,9 @@ YAHOO.util.Event.addListener(window, "load", function() {
       {key:"total", parser:this.parseNumber}
     ]
   };
-  this.myDataTable = new YAHOO.widget.DataTable("tabular_report_container", myColumnDefs, this.myDataSource, {formatRow: totalRowFormatter});
+  this.myDataTable = new YAHOO.widget.DataTable("tabular_report_container_
+                         [% tbl FILTER js %]", myColumnDefs, this.myDataSource, 
+                         {formatRow: totalRowFormatter});
 });
 </script>
 
@@ -153,7 +155,7 @@ YAHOO.util.Event.addListener(window, "load", function() {
 [% col_idx = 0 %]
 [% row_idx = 0 %]
 [% grand_total = 0 %]
-<div id="tabular_report_container">
+<div id="tabular_report_container_[% tbl FILTER js %]">
 <table id="tabular_report" border="1">
   [% IF col_field %]
     <thead>