forked from 0x2620/oxjs
form elements rewrite, part 2
This commit is contained in:
parent
fe303bf2b0
commit
074902d079
33 changed files with 163 additions and 153 deletions
|
|
@ -307,7 +307,7 @@ Ox.Calendar = function(options, self) {
|
|||
.css({float: 'left', margin: '4px'})
|
||||
.bindEvent({
|
||||
change: function(data) {
|
||||
self.options.showTypes = data.selected.map(function(type) {
|
||||
self.options.showTypes = data.value.map(function(type) {
|
||||
return type.id;
|
||||
});
|
||||
getLines();
|
||||
|
|
@ -491,6 +491,7 @@ Ox.Calendar = function(options, self) {
|
|||
|
||||
self.$zoomInput = Ox.Range({
|
||||
arrows: true,
|
||||
changeOnDrag: true,
|
||||
max: self.maxZoom,
|
||||
min: 0,
|
||||
size: self.options.width,
|
||||
|
|
@ -1008,9 +1009,9 @@ Ox.Calendar = function(options, self) {
|
|||
renderTimelines();
|
||||
renderOverlay();
|
||||
renderEvents();
|
||||
self.$dateInput.options({
|
||||
value: Ox.formatDate(self.options.date, '%Y-%m-%d %H:%M:%S', true)
|
||||
});
|
||||
self.$dateInput.value(
|
||||
Ox.formatDate(self.options.date, '%Y-%m-%d %H:%M:%S', true)
|
||||
);
|
||||
}
|
||||
|
||||
function renderEvents() {
|
||||
|
|
@ -1160,7 +1161,7 @@ Ox.Calendar = function(options, self) {
|
|||
|
||||
function zoomTo(zoom) {
|
||||
self.options.zoom = Ox.limit(zoom, 0, self.maxZoom);
|
||||
self.$zoomInput.options({value: self.options.zoom});
|
||||
self.$zoomInput.value(self.options.zoom);
|
||||
renderCalendar();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue