Revision: 2981
https://sourceforge.net/p/mrbs/code/2981/
Author: cimorrison
Date: 2015-01-26 13:09:05 +0000 (Mon, 26 Jan 2015)
Log Message:
-----------
Fixed bug which caused the end time selector to be blank in some circumstances
when using max_duration
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 2015-01-25 09:49:45 UTC (rev 2980)
+++ mrbs/trunk/web/js/edit_entry.js.php 2015-01-26 13:09:05 UTC (rev 2981)
@@ -957,7 +957,6 @@
else
{
endValue = startValue + defaultDuration;
- endValue = Math.min(endValue,
parseInt(endSelect.find('option').last().val(), 10));
}
}
}
@@ -977,7 +976,6 @@
if (startValue !== oldStartValue)
{
endValue = endValue + (startValue - oldStartValue);
- endValue = Math.min(endValue, parseInt($('#end_seconds' +
currentArea).find('option').last().val(), 10));
}
}
@@ -1106,7 +1104,8 @@
endSelect.append(optionClone);
}
});
-
+
+ endValue = Math.min(endValue,
parseInt(endSelect.find('option').last().val(), 10));
endSelect.val(endValue);
endSelect.data('current', endValue);
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits