mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
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:
parent
34580f4900
commit
8fa65f13f5
@ -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
|
||||
|
@ -14,8 +14,7 @@
|
||||
<rows>
|
||||
<row class="dialogHeader" height="28">
|
||||
<appicon/>
|
||||
<textbox id="title" maxlength="255" tabindex="1" class="et2_fullWidth" span="4" blur="Title"
|
||||
needed="true"/>
|
||||
<textbox id="title" maxlength="255" tabindex="1" class="et2_required" span="4" blur="Title"/>
|
||||
</row>
|
||||
<row class="dialogHeader2" height="28">
|
||||
<description for="start" value="Start" width="88"/>
|
||||
@ -42,4 +41,4 @@
|
||||
onchange="egw.set_preference('calendar',widget.id,widget.get_value() ? 'edit' : 'add');"/>
|
||||
</hbox>
|
||||
</template>
|
||||
</overlay>
|
||||
</overlay>
|
Loading…
Reference in New Issue
Block a user