From 1c4a640fdef69979e8dbab2458d166525b195bc5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 26 Oct 2015 15:08:44 +0000 Subject: [PATCH] fix sometimes shown old / no longer used delete dialog, buttons in new dialog were not translated and missing tooltip --- calendar/js/app.js | 13 ++++++------- calendar/templates/default/edit.xet | 15 --------------- 2 files changed, 6 insertions(+), 22 deletions(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index 42e921555c..b3093280c5 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -95,7 +95,6 @@ app.classes.calendar = AppJS.extend( case 'calendar.edit': if (typeof content.data['conflicts'] == 'undefined') { - $j(document.getElementById('calendar-edit_calendar-delete_series')).hide(); //Check if it's fallback from conflict window or it's from edit window if (content.data['button_was'] != 'freetime') { @@ -218,7 +217,7 @@ app.classes.calendar = AppJS.extend( { // Just open the merge window.open(_url.replace('&ajax=true',''),'_blank'); - + // Tell framework app took care of it return true; } @@ -876,21 +875,21 @@ app.classes.calendar = AppJS.extend( var buttons = [ { button_id: 'keep', - statustext:'All exceptions are converted into single events.', - text: 'Keep exceptions', + title: this.egw.lang('All exceptions are converted into single events.'), + text: this.egw.lang('Keep exceptions'), id: 'button[delete_keep_exceptions]', image: 'keep', "default":true }, { button_id: 'delete', - statustext:'The exceptions are deleted together with the series.', - text: 'Delete exceptions', + title: this.egw.lang('The exceptions are deleted together with the series.'), + text: this.egw.lang('Delete exceptions'), id: 'button[delete_exceptions]', image: 'delete' }, { button_id: 'cancel', - text: 'Cancel', + text: this.egw.lang('Cancel'), id: 'dialog[cancel]', image: 'cancel' } diff --git a/calendar/templates/default/edit.xet b/calendar/templates/default/edit.xet index a675b70e8f..2c1184f13e 100644 --- a/calendar/templates/default/edit.xet +++ b/calendar/templates/default/edit.xet @@ -243,20 +243,6 @@ -