Revision: 2052
http://mrbs.svn.sourceforge.net/mrbs/?rev=2052&view=rev
Author: cimorrison
Date: 2011-10-02 11:34:11 +0000 (Sun, 02 Oct 2011)
Log Message:
-----------
Stopped a datatable being formed if the table doesn't exist
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
11:08:26 UTC (rev 2051)
+++ mrbs/branches/datatables/web/Themes/default/header.inc 2011-10-02
11:34:11 UTC (rev 2052)
@@ -237,6 +237,10 @@
else
{
var table = $(id);
+ if (table.length == 0)
+ {
+ return false;
+ }
<?php // Set up the default options ?>
var defaultOptions = {};
<?php
@@ -323,6 +327,7 @@
// merge.
?>
var mergedOptions = $.extend(true, {}, defaultOptions,
specificOptions);
+
var oTable = table.dataTable(mergedOptions);
<?php
// If we're using an Ajax data source then don't offer column
reordering.
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