[Piwik-svn] r203 - trunk/plugins/Home/templates

svnmaster at piwik.org svnmaster at piwik.org
Sun Jan 20 01:20:23 CET 2008


Author: julien
Date: 2008-01-20 01:20:22 +0100 (Sun, 20 Jan 2008)
New Revision: 203

Modified:
   trunk/plugins/Home/templates/datatable.js
   trunk/plugins/Home/templates/datatable_actions_js.tpl
   trunk/plugins/Home/templates/datatable_js.tpl
Log:
Correction of IE/Safari/Opera compatibility bug in javascript

Modified: trunk/plugins/Home/templates/datatable.js
===================================================================
--- trunk/plugins/Home/templates/datatable.js	2008-01-20 00:17:36 UTC (rev 202)
+++ trunk/plugins/Home/templates/datatable.js	2008-01-20 00:20:22 UTC (rev 203)
@@ -850,7 +850,7 @@
 		
 		// we execute the bindDataTableEvent function for the new DIV
 		self.init(self.workingDivId, $('#'+idToReplace));
-	},
+	}
 };
 
 //helper function for actionDataTable

Modified: trunk/plugins/Home/templates/datatable_actions_js.tpl
===================================================================
--- trunk/plugins/Home/templates/datatable_actions_js.tpl	2008-01-20 00:17:36 UTC (rev 202)
+++ trunk/plugins/Home/templates/datatable_actions_js.tpl	2008-01-20 00:20:22 UTC (rev 203)
@@ -2,8 +2,8 @@
 <script type="text/javascript" defer="defer">
 actionDataTables['{$id}'] = new actionDataTable();
 actionDataTables['{$id}'].param = {literal}{{/literal} 
-{foreach from=$javascriptVariablesToSet key=name item=value}
-	{$name}: '{$value}',
+{foreach from=$javascriptVariablesToSet key=name item=value name=loop}
+	{$name}: '{$value}'{if !$smarty.foreach.loop.last},{/if}
 {/foreach}
 {literal}};{/literal}
 </script>

Modified: trunk/plugins/Home/templates/datatable_js.tpl
===================================================================
--- trunk/plugins/Home/templates/datatable_js.tpl	2008-01-20 00:17:36 UTC (rev 202)
+++ trunk/plugins/Home/templates/datatable_js.tpl	2008-01-20 00:20:22 UTC (rev 203)
@@ -2,8 +2,8 @@
 <script type="text/javascript" defer="defer">
 dataTables['{$id}'] = new dataTable();
 dataTables['{$id}'].param = {literal}{{/literal} 
-{foreach from=$javascriptVariablesToSet key=name item=value}
-	{$name}: '{$value}',
+{foreach from=$javascriptVariablesToSet key=name item=value name=loop}
+	{$name}: '{$value}'{if !$smarty.foreach.loop.last},{/if}
 {/foreach}
 {literal}};{/literal}
 </script>



More information about the Piwik-svn mailing list