From a1b7c86f8be8ed0aca25a0882a2094348cf8750d Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 2 Mar 2013 10:50:08 +0530 Subject: [PATCH] Ox.Calendar: add tooltips, change select type to image --- source/Ox.UI/js/Calendar/Calendar.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/source/Ox.UI/js/Calendar/Calendar.js b/source/Ox.UI/js/Calendar/Calendar.js index 17a6ac35..4d6a3fe7 100644 --- a/source/Ox.UI/js/Calendar/Calendar.js +++ b/source/Ox.UI/js/Calendar/Calendar.js @@ -332,7 +332,7 @@ Ox.Calendar = function(options, self) { }) .appendTo(that); - self.$typeSelect = Ox.Select({ + self.$menu = Ox.Select({ items: [ {id: 'date', title: 'Dates'}, {id: 'place', title: 'Places'}, @@ -341,9 +341,9 @@ Ox.Calendar = function(options, self) { ], max: -1, min: 1, - title: 'Show...', - value: self.options.showTypes, - width: 80 + title: 'set', + type: 'image', + value: self.options.showTypes }) .css({float: 'left', margin: '4px'}) .bindEvent({ @@ -534,7 +534,10 @@ Ox.Calendar = function(options, self) { }); self.$eventControls = { - name: Ox.Label() + name: Ox.Label({ + textAlign: 'center', + tooltip: 'Click to pan, doubleclick to zoom' + }) .addClass('OxEventControl OxEventName') .css({bottom: 20 + (self.options.showZoombar * 16) + 'px'}) .bindEvent({ @@ -548,6 +551,7 @@ Ox.Calendar = function(options, self) { .appendTo(that), deselectButton: Ox.Button({ title: 'close', + tooltip: 'Deselect', type: 'image' }) .addClass('OxEventControl OxEventDeselectButton')