Ox.Calendar: add tooltips, change select type to image

This commit is contained in:
rolux 2013-03-02 10:50:08 +05:30
parent eb1b8c8745
commit a1b7c86f8b

View file

@ -332,7 +332,7 @@ Ox.Calendar = function(options, self) {
}) })
.appendTo(that); .appendTo(that);
self.$typeSelect = Ox.Select({ self.$menu = Ox.Select({
items: [ items: [
{id: 'date', title: 'Dates'}, {id: 'date', title: 'Dates'},
{id: 'place', title: 'Places'}, {id: 'place', title: 'Places'},
@ -341,9 +341,9 @@ Ox.Calendar = function(options, self) {
], ],
max: -1, max: -1,
min: 1, min: 1,
title: 'Show...', title: 'set',
value: self.options.showTypes, type: 'image',
width: 80 value: self.options.showTypes
}) })
.css({float: 'left', margin: '4px'}) .css({float: 'left', margin: '4px'})
.bindEvent({ .bindEvent({
@ -534,7 +534,10 @@ Ox.Calendar = function(options, self) {
}); });
self.$eventControls = { self.$eventControls = {
name: Ox.Label() name: Ox.Label({
textAlign: 'center',
tooltip: 'Click to pan, doubleclick to zoom'
})
.addClass('OxEventControl OxEventName') .addClass('OxEventControl OxEventName')
.css({bottom: 20 + (self.options.showZoombar * 16) + 'px'}) .css({bottom: 20 + (self.options.showZoombar * 16) + 'px'})
.bindEvent({ .bindEvent({
@ -548,6 +551,7 @@ Ox.Calendar = function(options, self) {
.appendTo(that), .appendTo(that),
deselectButton: Ox.Button({ deselectButton: Ox.Button({
title: 'close', title: 'close',
tooltip: 'Deselect',
type: 'image' type: 'image'
}) })
.addClass('OxEventControl OxEventDeselectButton') .addClass('OxEventControl OxEventDeselectButton')