Revision: 2593
https://sourceforge.net/p/mrbs/code/2593/
Author: cimorrison
Date: 2012-12-14 21:51:21 +0000 (Fri, 14 Dec 2012)
Log Message:
-----------
Corrected an out of scope use of a variable
Modified Paths:
--------------
mrbs/trunk/web/js/edit_area_room.js.php
Modified: mrbs/trunk/web/js/edit_area_room.js.php
===================================================================
--- mrbs/trunk/web/js/edit_area_room.js.php 2012-12-14 21:46:26 UTC (rev
2592)
+++ mrbs/trunk/web/js/edit_area_room.js.php 2012-12-14 21:51:21 UTC (rev
2593)
@@ -45,12 +45,13 @@
// internationalised format, but is probably sufficient for a
// rarely used admin page.
?>
- var minutes = time % 60;
+ var ap,
+ minutes = time % 60;
time -= minutes;
var hour = time/60;
if (!twentyfourhour_format)
{
- var ap = "<?php echo utf8_strftime($strftime_format['ampm'], mktime(10,
0, 0)) ?>";
+ ap = "<?php echo utf8_strftime($strftime_format['ampm'], mktime(10, 0,
0)) ?>";
if (hour > 11) {ap = "<?php echo utf8_strftime($strftime_format['ampm'],
mktime(14, 0, 0)) ?>";}
if (hour > 12) {hour = hour - 12;}
if (hour == 0) {hour = 12;}
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits