From 8fa65f13f5f02b4072bfd8291a64176c333d6c7d Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 23 Sep 2022 09:26:39 +0200 Subject: [PATCH] fix quick add to show title as required, but allow to click edit without adding it also no longer fill empty title with "Event", as it does not work and is annoying thought et2_required class on et2-textbox should NOT affect the parent/table cell --- calendar/js/app.ts | 4 ---- calendar/templates/default/add.xet | 5 ++--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/calendar/js/app.ts b/calendar/js/app.ts index 01c154617f..9330e5ccc4 100644 --- a/calendar/js/app.ts +++ b/calendar/js/app.ts @@ -2180,10 +2180,6 @@ export class CalendarApp extends EgwApp add_dialog_edit(event, widget) { var title=widget.getRoot().getWidgetById('title'); - if(title && !title.get_value()) - { - title.set_value(title.egw().lang('Event')); - } let options = jQuery.extend(this.quick_add, this._add_dialog_values(widget)); // Open regular edit diff --git a/calendar/templates/default/add.xet b/calendar/templates/default/add.xet index 4b4686c6aa..a338424f4a 100644 --- a/calendar/templates/default/add.xet +++ b/calendar/templates/default/add.xet @@ -14,8 +14,7 @@ - + @@ -42,4 +41,4 @@ onchange="egw.set_preference('calendar',widget.id,widget.get_value() ? 'edit' : 'add');"/> - + \ No newline at end of file