fixed invalid CSS selectors

The surplus ":" in the input selector causes jquery versions past 1.9 to throw an error.
This commit is contained in:
Mike Bifulco
2015-05-21 15:02:09 -04:00
parent b0b6967a43
commit 1dcce2c49d

View File

@@ -122,8 +122,8 @@ var DetailsView = ValidatingView.extend({
setupDatePicker: function (fieldName) {
var cacheModel = this.model;
var div = this.$el.find('#' + this.fieldToSelectorMap[fieldName]);
var datefield = $(div).find("input:.date");
var timefield = $(div).find("input:.time");
var datefield = $(div).find("input.date");
var timefield = $(div).find("input.time");
var cachethis = this;
var setfield = function () {
var newVal = DateUtils.getDate(datefield, timefield),