Revision: 2114
http://mrbs.svn.sourceforge.net/mrbs/?rev=2114&view=rev
Author: cimorrison
Date: 2011-10-19 10:34:38 +0000 (Wed, 19 Oct 2011)
Log Message:
-----------
Sorted out last problem, and also resizable bookings now cope with window
resizes.
Modified Paths:
--------------
mrbs/branches/draggable_bookings/web/Themes/default/header.inc
Modified: mrbs/branches/draggable_bookings/web/Themes/default/header.inc
===================================================================
--- mrbs/branches/draggable_bookings/web/Themes/default/header.inc
2011-10-19 10:01:58 UTC (rev 2113)
+++ mrbs/branches/draggable_bookings/web/Themes/default/header.inc
2011-10-19 10:34:38 UTC (rev 2114)
@@ -1403,11 +1403,8 @@
var tableData = {};
-
getTableData(table, tableData);
-
-
<?php
// bookedMap is an array of booked slots. Each member of the array
is an
// object with four properties (n, s, e, w) representing the
cooordinates (x or y)
@@ -1924,11 +1921,21 @@
$(this).css('background-color', 'transparent')
.wrapInner('<div style="position: relative"><\/div>');
});
- }
+
+ $(window).resize(function(event) {
+ if (event.target == this) <?php // don't want the ui-resizable
event bubbling up ?>
+ {
+ <?php
+ // The table dimensions have changed, so we need to redraw the
clones
+ // and re map the table
+ ?>
+ redrawClones();
+ getTableData(table, tableData);
+ }
+ });
+
+ } <?php // if (!lteIE8) ?>
- $(window).resize(function() {
- //redrawClones();
- });
<?php
} // if function_exists('json_encode')
}
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-d2d-oct
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits