don't call datetime_field multiple times on this field
The real fix for this is to make datetime_field idempotent, but that might be a little trickier. This changes fixes this one specific case though. (datetime_field was being called multiple times on the date field, which caused it to include the date twice in the submitted value, which caused ruby to misinterpret the pm.) fixes #3818 Change-Id: Ifd24f202d25d7c2431409c1c7c3d285c81d7d990 Reviewed-on: https://gerrit.instructure.com/2292 Tested-by: Hudson <hudson@instructure.com> Reviewed-by: Brian Palmer <brianp@instructure.com>
This commit is contained in:
parent
c493884e7c
commit
025098d64a
|
@ -84,7 +84,7 @@
|
|||
}
|
||||
}
|
||||
$(document).ready(function() {
|
||||
$("#add_assignment_inline_form .datetime_field").datetime_field();
|
||||
$("#add_assignment_inline_form .datetime_field").not(".datetime_field_enabled").datetime_field();
|
||||
$("#add_assignment_inline_form").formSubmit({
|
||||
beforeSubmit: function(data) {
|
||||
$("#add_assignment_inline").loadingImage();
|
||||
|
|
Loading…
Reference in New Issue