Revision: 1956
http://mrbs.svn.sourceforge.net/mrbs/?rev=1956&view=rev
Author: cimorrison
Date: 2011-09-20 10:57:05 +0000 (Tue, 20 Sep 2011)
Log Message:
-----------
Made the datatables resize when the browser window is resized
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-20
10:45:53 UTC (rev 1955)
+++ mrbs/branches/datatables/web/Themes/default/header.inc 2011-09-20
10:57:05 UTC (rev 1956)
@@ -222,7 +222,12 @@
// merge.
?>
var mergedOptions = $.extend(true, {}, defaultOptions,
specificOptions);
- return $(id).dataTable(mergedOptions);
+ var oTable = $(id).dataTable(mergedOptions);
+ <?php // Need to redraw the datatable when the browser window is
resized ?>
+ $(window).bind('resize', function () {
+ oTable.fnDraw();
+ });
+ return oTable;
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits