Revision: 2116
http://mrbs.svn.sourceforge.net/mrbs/?rev=2116&view=rev
Author: cimorrison
Date: 2011-10-19 11:32:48 +0000 (Wed, 19 Oct 2011)
Log Message:
-----------
Simplified code
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 11:25:17 UTC (rev 2115)
+++ mrbs/branches/draggable_bookings/web/Themes/default/header.inc
2011-10-19 11:32:48 UTC (rev 2116)
@@ -1711,7 +1711,7 @@
// Build the map of booked cells, excluding this cell (because
we're
// allowed to be in our own cell
?>
- table.find('td').not('td.new,
td.row_labels').not(divBooking.parents('td')).each(function() {
+ table.find('td').not('td.new,
td.row_labels').not(divBooking.closest('td')).each(function() {
bookedMap.push(getSides($(this)));
});
@@ -2118,7 +2118,7 @@
?>
$('form#main').find('[type="submit"], [type="button"],
[type="image"]').click(function() {
var trigger = $(this).attr('name');
- var thisForm = $(this).parents('form').eq(0);
+ var thisForm = $(this).closest('form');
thisForm.data('submit', trigger);
if (trigger == 'save_button')
{
@@ -2278,7 +2278,7 @@
maintable.find('table.sub th.control')
.text('-')
.live('click', function (event) {
- var nTr =
$(this).parents('.table_container').parent().prev();
+ var nTr =
$(this).closest('.table_container').parent().prev();
var serial =
$(this).parent().parent().parent().attr('id').replace('subtable_', '');
$('#subtable_' + serial + '_wrapper').slideUp( function ()
{
pendingTable.fnClose(nTr.get(0));
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