Commit 45ebdd78 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

moved ready to be last in init

parent 654251a6
......@@ -123,11 +123,6 @@ var OSLocation = (function (_super) {
(self.oncallback && self.oncallback());
}
;
UIkit.ready(function () {
var startDatePicker = UIkit.datepicker(self.obsDateInput, { format: self.dateFormat });
var startTimePicker = UIkit.timepicker(self.obsTimeInput, {});
self.defaults();
});
var positionLabelGrid = L.DomUtil.create('div', 'uk-grid uk-margin-top', form);
var positionlabelDiv = L.DomUtil.create('div', 'uk-width-1-1', positionLabelGrid);
_super.prototype.addLabelDiv.call(_this, positionlabelDiv, "Position", "See more information <a style='color:#faa732;' href='help/classic/#object-fo-position' target='_blank'>here</a>");
......@@ -247,6 +242,11 @@ var OSLocation = (function (_super) {
}
(self.oncallback && self.oncallback(true));
};
UIkit.ready(function () {
var startDatePicker = UIkit.datepicker(self.obsDateInput, { format: self.dateFormat });
var startTimePicker = UIkit.timepicker(self.obsTimeInput, {});
self.defaults();
});
return _this;
}
OSLocation.prototype.defaults = function () {
......
......@@ -123,11 +123,6 @@ var OSLocation = (function (_super) {
(self.oncallback && self.oncallback());
}
;
UIkit.ready(function () {
var startDatePicker = UIkit.datepicker(self.obsDateInput, { format: self.dateFormat });
var startTimePicker = UIkit.timepicker(self.obsTimeInput, {});
self.defaults();
});
var positionLabelGrid = L.DomUtil.create('div', 'uk-grid uk-margin-top', form);
var positionlabelDiv = L.DomUtil.create('div', 'uk-width-1-1', positionLabelGrid);
_super.prototype.addLabelDiv.call(_this, positionlabelDiv, "Position", "See more information <a style='color:#faa732;' href='help/classic/#object-fo-position' target='_blank'>here</a>");
......@@ -247,6 +242,11 @@ var OSLocation = (function (_super) {
}
(self.oncallback && self.oncallback(true));
};
UIkit.ready(function () {
var startDatePicker = UIkit.datepicker(self.obsDateInput, { format: self.dateFormat });
var startTimePicker = UIkit.timepicker(self.obsTimeInput, {});
self.defaults();
});
return _this;
}
OSLocation.prototype.defaults = function () {
......
This diff is collapsed.
......@@ -145,12 +145,7 @@ class OSLocation extends OilSpillCard {
(self.oncallback && self.oncallback());
};
UIkit.ready( function(){
var startDatePicker = UIkit.datepicker(<any>self.obsDateInput, { format: self.dateFormat });
var startTimePicker = UIkit.timepicker(<any> self.obsTimeInput, { });
self.defaults();
});
var positionLabelGrid = <HTMLDivElement>L.DomUtil.create('div', 'uk-grid uk-margin-top', form);
var positionlabelDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-width-1-1', positionLabelGrid);
......@@ -277,6 +272,13 @@ class OSLocation extends OilSpillCard {
(self.oncallback && self.oncallback(true));
};
UIkit.ready( function(){
var startDatePicker = UIkit.datepicker(<any>self.obsDateInput, { format: self.dateFormat });
var startTimePicker = UIkit.timepicker(<any> self.obsTimeInput, { });
self.defaults();
});
}
public defaults() {
......
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