Commit 1dcce2c4 by Mike Bifulco

fixed invalid CSS selectors

The surplus ":" in the input selector causes jquery versions past 1.9 to throw an error.
parent b0b6967a
...@@ -122,8 +122,8 @@ var DetailsView = ValidatingView.extend({ ...@@ -122,8 +122,8 @@ var DetailsView = ValidatingView.extend({
setupDatePicker: function (fieldName) { setupDatePicker: function (fieldName) {
var cacheModel = this.model; var cacheModel = this.model;
var div = this.$el.find('#' + this.fieldToSelectorMap[fieldName]); var div = this.$el.find('#' + this.fieldToSelectorMap[fieldName]);
var datefield = $(div).find("input:.date"); var datefield = $(div).find("input.date");
var timefield = $(div).find("input:.time"); var timefield = $(div).find("input.time");
var cachethis = this; var cachethis = this;
var setfield = function () { var setfield = function () {
var newVal = DateUtils.getDate(datefield, timefield), var newVal = DateUtils.getDate(datefield, timefield),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment