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
This commit is contained in:
ralf 2022-09-23 09:26:39 +02:00
parent 34580f4900
commit 8fa65f13f5
2 changed files with 2 additions and 7 deletions

View File

@ -2180,10 +2180,6 @@ export class CalendarApp extends EgwApp
add_dialog_edit(event, widget) add_dialog_edit(event, widget)
{ {
var title=widget.getRoot().getWidgetById('title'); 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)); let options = jQuery.extend(this.quick_add, this._add_dialog_values(widget));
// Open regular edit // Open regular edit

View File

@ -14,8 +14,7 @@
<rows> <rows>
<row class="dialogHeader" height="28"> <row class="dialogHeader" height="28">
<appicon/> <appicon/>
<textbox id="title" maxlength="255" tabindex="1" class="et2_fullWidth" span="4" blur="Title" <textbox id="title" maxlength="255" tabindex="1" class="et2_required" span="4" blur="Title"/>
needed="true"/>
</row> </row>
<row class="dialogHeader2" height="28"> <row class="dialogHeader2" height="28">
<description for="start" value="Start" width="88"/> <description for="start" value="Start" width="88"/>