Revision: 2055
http://mrbs.svn.sourceforge.net/mrbs/?rev=2055&view=rev
Author: cimorrison
Date: 2011-10-02 17:24:00 +0000 (Sun, 02 Oct 2011)
Log Message:
-----------
Made datatables work for IE7 and IE8
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-10-02
17:03:03 UTC (rev 2054)
+++ mrbs/branches/datatables/web/Themes/default/header.inc 2011-10-02
17:24:00 UTC (rev 2055)
@@ -229,9 +229,27 @@
?>
function makeDataTable(id, specificOptions, leftCol, rightCol)
{
+ var winWidth = $(window).width();
+ var winHeight = $(window).height();
+
var windowResizeHandler = function()
{
<?php
+ // IE8 and below will trigger $(window).resize not just when the
window
+ // is resizedbut also when an element in the window is resized.
We
+ // therefore need to check that this is a genuine window resize
event
+ // otherwise we end up in an infinite loop
+ ?>
+ var winNewWidth = $(window).width();
+ var winNewHeight = $(window).height();
+ if ((winNewWidth == winWidth) && (winNewHeight == winHeight))
+ {
+ return;
+ }
+ winWidth = winNewWidth;
+ winHeight = winNewHeight;
+
+ <?php
// Need to re-create the datatable when the browser window is
resized. We
// can't just do a fnDraw() because that does not redraw the Fixed
Columns
// properly.
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