Revision: 2035
          http://mrbs.svn.sourceforge.net/mrbs/?rev=2035&view=rev
Author:   cimorrison
Date:     2011-09-30 10:13:33 +0000 (Fri, 30 Sep 2011)
Log Message:
-----------
Saved the language strings to prevent Ajax calls to re-fetch the language 
strings on window resize

Modified Paths:
--------------
    mrbs/branches/datatables/web/Themes/default/header.inc

Modified: mrbs/branches/datatables/web/Themes/default/header.inc
===================================================================
--- mrbs/branches/datatables/web/Themes/default/header.inc      2011-09-30 
09:54:25 UTC (rev 2034)
+++ mrbs/branches/datatables/web/Themes/default/header.inc      2011-09-30 
10:13:33 UTC (rev 2035)
@@ -304,6 +304,12 @@
                   mergedOptions.aaData = oTable.fnGetData();
                   mergedOptions.sAjaxSource = null;
                 }
+                <?php
+                // Save the language strings, because we don't need to make 
another Ajax
+                // to fetch the language strings again when we resize
+                ?>
+                $.extend(true, mergedOptions.oLanguage, 
oTable.fnSettings().oLanguage);
+                
                 oTable.fnDestroy();
                 oTable = table.dataTable(mergedOptions);
               });

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to