public/js/data-access.js in kolo-0.7.4 vs public/js/data-access.js in kolo-0.7.5
- old
+ new
@@ -396,12 +396,11 @@
Model.prototype.valid = function() {
return true;
};
Model.prototype.select = function() {
- this.db.selected(this);
- return this.initDateControls();
+ return this.db.selected(this);
};
Model.prototype.deselect = function() {
this.deleting(false);
this.editing(false);
@@ -416,25 +415,9 @@
};
Model.prototype.stopEditing = function() {
this.editing(false);
return this.deselect();
- };
-
- Model.prototype.initDateControls = function() {
- return setTimeout((function(_this) {
- return function() {
- if (!_this.requiresDatePicker()) {
- return;
- }
- $('input.datepicker').datepicker({
- format: 'yyyy-mm-dd'
- });
- return $('input.datepicker').on('changeDate', function(evt) {
- return $(this).trigger('change');
- });
- };
- })(this), 100);
};
Model.prototype.requiresDatePicker = function() {
var i;
i = document.createElement('input');