Revision: 2180
http://mrbs.svn.sourceforge.net/mrbs/?rev=2180&view=rev
Author: cimorrison
Date: 2011-11-21 04:47:22 +0000 (Mon, 21 Nov 2011)
Log Message:
-----------
Stopped multiday bookings being dragged by non-admins if
$auth['only_admin_can_book_multiday'] is set.
Modified Paths:
--------------
mrbs/trunk/web/Themes/default/header.inc
Modified: mrbs/trunk/web/Themes/default/header.inc
===================================================================
--- mrbs/trunk/web/Themes/default/header.inc 2011-11-21 03:41:22 UTC (rev
2179)
+++ mrbs/trunk/web/Themes/default/header.inc 2011-11-21 04:47:22 UTC (rev
2180)
@@ -2261,6 +2261,19 @@
directions.otherMinus = false;
<?php
}
+ if ($auth['only_admin_can_book_multiday'])
+ {
+ // Don't let non-admins drag multi-day bookings if
+ // $auth['only_admin_can_book_multiday'] is set
+ ?>
+ if ($(this).hasClass('multiday_start') ||
+ $(this).hasClass('multiday_end'))
+ {
+ directions.timesPlus = false;
+ directions.timesMinus = false;
+ }
+ <?php
+ }
}
// Don't allow multiday bookings to be moved at the end
// which is joined to another day nor along the other axis
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. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits