From cd30a70a969a24f5344e2305025878704e0e3b28 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 3 Feb 2016 16:52:28 +0000 Subject: [PATCH] Sidebox calendar buttons - change button colors - change tooltip for added buttons to match jqueryui buttons - finally found (& removed) that 1px wiggle --- calendar/js/app.js | 5 ++++- calendar/js/et2_widget_event.js | 6 +++--- calendar/templates/default/app.css | 3 ++- calendar/templates/default/sidebox.xet | 4 ++-- calendar/templates/pixelegg/app.css | 20 ++++++++++++++++---- calendar/templates/pixelegg/app.less | 19 ++++++++++++++++--- 6 files changed, 43 insertions(+), 14 deletions(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index a7ee90c029..e9611c675b 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -3115,7 +3115,7 @@ app.classes.calendar = AppJS.extend( { var temp_date = new Date(year, month-1, 1,0,0,0); //temp_date.setUTCMinutes(temp_date.getUTCMinutes() + temp_date.getTimezoneOffset()); - go_button.set_statustext(egw.lang(date('F',temp_date))); + go_button.btn.attr('title',egw.lang(date('F',temp_date))); // Store current _displayed_ date in date button for clicking temp_date.setUTCMinutes(temp_date.getUTCMinutes() - temp_date.getTimezoneOffset()); @@ -3194,6 +3194,7 @@ app.classes.calendar = AppJS.extend( // Set today button var today = $j('#calendar-sidebox_header_today'); + today.attr('title',egw.lang('today')); // Set go button var go_button = date_widget.getRoot().getWidgetById('header_go'); @@ -3204,9 +3205,11 @@ app.classes.calendar = AppJS.extend( temp_date.setUTCDate(1); temp_date.setUTCMinutes(temp_date.getUTCMinutes() + temp_date.getTimezoneOffset()); + go_button.attr('title', egw.lang(date('F',temp_date))); // Store current _displayed_ date in date button for clicking temp_date.setUTCMinutes(temp_date.getUTCMinutes() - temp_date.getTimezoneOffset()); go_button.attr('data-date', temp_date.toJSON()); + } // Dynamic resize of sidebox calendar to fill sidebox diff --git a/calendar/js/et2_widget_event.js b/calendar/js/et2_widget_event.js index 94853343a1..4bc3b3a2cc 100644 --- a/calendar/js/et2_widget_event.js +++ b/calendar/js/et2_widget_event.js @@ -306,9 +306,6 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM], // Header var title = !event.is_private ? event['title'] : egw.lang('private'); - // Height specific section - this._small_size(); - this.title .html(''+this._get_timespan(event) + '
') .append(''+title+'') @@ -350,6 +347,9 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM], .append('

'+this.options.value.description+'

'); } } + + // Height specific section + this._small_size(); }, /** diff --git a/calendar/templates/default/app.css b/calendar/templates/default/app.css index 7a63cfb977..c380c978e2 100644 --- a/calendar/templates/default/app.css +++ b/calendar/templates/default/app.css @@ -555,12 +555,13 @@ Hide subsequent headers in week view with non-consolidated owners .calendar_calTimeGrid:not(.calendar_calTimeGridList) *:not(.calendar_calDayColAllDay) > .calendar_calEvent::after { width: 100%; background-color: rgba(255,255,255,0.9); - height: 0.9em; + height: 5px; content: "\02026"; left: 0px; float: right; padding-bottom: 5em; text-indent: 5px; + line-height: 5px; } /** * User has not accepted the invitation diff --git a/calendar/templates/default/sidebox.xet b/calendar/templates/default/sidebox.xet index 5d08895ebb..1501f76268 100644 --- a/calendar/templates/default/sidebox.xet +++ b/calendar/templates/default/sidebox.xet @@ -15,13 +15,13 @@ Egroupware