Revision: 2703
https://sourceforge.net/p/mrbs/code/2703/
Author: cimorrison
Date: 2013-02-15 19:04:09 +0000 (Fri, 15 Feb 2013)
Log Message:
-----------
Fixed bug resulting in no end time options being offered if there is only one
enabled area.
Modified Paths:
--------------
mrbs/trunk/web/js/edit_entry.js.php
Modified: mrbs/trunk/web/js/edit_entry.js.php
===================================================================
--- mrbs/trunk/web/js/edit_entry.js.php 2013-02-15 17:01:16 UTC (rev 2702)
+++ mrbs/trunk/web/js/edit_entry.js.php 2013-02-15 19:04:09 UTC (rev 2703)
@@ -1128,14 +1128,24 @@
?>
var oldInitEditEntry = init;
-init = function() {
- oldInitEditEntry.apply(this);
+init = function(args) {
+ oldInitEditEntry.apply(this, [args]);
+ <?php
+ // If there's only one enabled area in the database there won't be an area
+ // select input, so we'll have to create a dummy input because the code
+ // relies on it.
+ ?>
+ if ($('#area').length === 0)
+ {
+ $('#div_rooms').before('<input id="area" type="hidden" value="' +
args.area + '">');
+ }
+
var areaSelect = $('#area'),
startSelect,
endSelect,
allDay;
-
+
$('#div_areas').show();
$('#start_seconds, #end_seconds')
@@ -1175,7 +1185,6 @@
adjustSlotSelectors();
});
-
$('input[name="all_day"]').click(function() {
onAllDayClick();
});
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
is your hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials, tech docs,
whitepapers, evaluation guides, and opinion stories. Check out the most
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits