1
0
Fork 0
forked from 0x2620/oxjs

form elements rewrite, part 2

This commit is contained in:
rolux 2011-12-21 21:03:52 +05:30
commit 074902d079
33 changed files with 163 additions and 153 deletions

View file

@ -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();
}