upper check-all button also needs to call egw_objectManager.toggleAllSelected()

This commit is contained in:
Ralf Becker 2011-05-06 13:25:43 +00:00
parent 40d22624dd
commit 59a91269e9
2 changed files with 44 additions and 44 deletions

File diff suppressed because one or more lines are too long

View File

@ -33,58 +33,58 @@
<nextmatch-sortheader label="Recurrence" id="recure"/>
<nextmatch-header label="Category" id="cat_id"/>
<vbox>
<nextmatch-sortheader label="Owner" readonly="true" id="cal_owner"/>
<nextmatch-sortheader label="Owner" id="cal_owner" readonly="true"/>
<nextmatch-sortheader label="Location" id="cal_location"/>
</vbox>
<nextmatch-sortheader label="Owner" readonly="true" id="cal_owner"/>
<nextmatch-sortheader label="Owner" id="cal_owner" readonly="true"/>
<nextmatch-sortheader label="Location" id="cal_location"/>
<nextmatch-accountfilter label="Participants" id="participant" options="All"/>
<vbox>
<nextmatch-sortheader label="Created" id="cal_created"/>
<nextmatch-header id="cal_creator" options="Creator" label="Creator"/>
<nextmatch-header label="Creator" id="cal_creator" options="Creator"/>
<description value="Last changed"/>
</vbox>
<nextmatch-customfields label="Custom fields" readonly="true" id="cfs"/>
<hbox label="Actions" class="noPrint">
<nextmatch-header label="Actions" statustext="Check all" class="noPrint" id="legacy_actions"/>
<button label="Check all" onclick="toggle_all(this.form,form::name('checked[]')); return false;" needed="1" align="right" id="check_all" image="check" statustext="Check all"/>
<nextmatch-customfields label="Custom fields" id="cfs" readonly="true"/>
<hbox class="noPrint" label="Actions">
<nextmatch-header statustext="Check all" label="Actions" id="legacy_actions" class="noPrint"/>
<button align="right" statustext="Check all" label="Check all" id="check_all" needed="1" onclick="egw_objectManager.toggleAllSelected(); return false;" image="check"/>
</hbox>
</row>
<row class="$row_cont[category] $row_cont[class]" valign="top">
<vbox id="start">
<date-time readonly="true" id="${row}[start]" options=",$cont[format]" class="noWrap"/>
<date-time readonly="true" id="${row}[end]" options=",$cont[format]" class="noWrap"/>
<date-time id="${row}[start]" readonly="true" options=",$cont[format]" class="noWrap"/>
<date-time id="${row}[end]" readonly="true" options=",$cont[format]" class="noWrap"/>
</vbox>
<vbox class="listVbox">
<hbox readonly="true" no_lang="1">
<description readonly="true" no_lang="1" id="${row}[title]" options="b"/>
<description value="#%s" id="${row}[id]" options="b" align="right"/>
<hbox no_lang="1" readonly="true">
<description id="${row}[title]" no_lang="1" readonly="true" options="b"/>
<description align="right" value="#%s" id="${row}[id]" options="b"/>
</hbox>
<box no_lang="1" class="listDescription">
<description no_lang="1" id="${row}[description]"/>
<description id="${row}[description]" no_lang="1"/>
</box>
<description no_lang="1" id="${row}[recure]"/>
<description id="${row}[recure]" no_lang="1"/>
</vbox>
<hbox>
<description id="${row}[title]"/>
<description value="#%s" id="${row}[id]" options="b" align="right"/>
<description align="right" value="#%s" id="${row}[id]" options="b"/>
</hbox>
<description no_lang="1" id="${row}[description]"/>
<description id="${row}[description]" no_lang="1"/>
<description id="${row}[recure]"/>
<menulist>
<menupopup type="select-cat" readonly="true" id="${row}[category]"/>
<menupopup type="select-cat" id="${row}[category]" readonly="true"/>
</menulist>
<vbox>
<menulist>
<menupopup type="select-account" class="noWrap" readonly="true" id="${row}[owner]"/>
<menupopup type="select-account" class="noWrap" id="${row}[owner]" readonly="true"/>
</menulist>
<description no_lang="1" id="${row}[location]"/>
<description id="${row}[location]" no_lang="1"/>
</vbox>
<menulist>
<menupopup type="select-account" class="noWrap" readonly="true" id="${row}[owner]"/>
<menupopup type="select-account" class="noWrap" id="${row}[owner]" readonly="true"/>
</menulist>
<description no_lang="1" id="${row}[location]"/>
<html readonly="true" no_lang="1" id="${row}[parts]"/>
<description id="${row}[location]" no_lang="1"/>
<html id="${row}[parts]" no_lang="1" readonly="true"/>
<vbox>
<date-time id="${row}[created]" readonly="true"/>
<menulist>
@ -95,15 +95,15 @@
<customfields-list id="$row"/>
<vbox options="0,0" class="noPrint">
<hbox class="noPrint">
<button label="View" onclick="window.open(egw::link('/index.php','menuaction=calendar.calendar_uiforms.edit&amp;cal_id=$row_cont[id]&amp;date=$row_cont[date]'),'425','dependent=yes,width=750,height=450,scrollbars=yes,status=yes'); return false;" id="view[$row_cont[id]]" image="view" statustext="View this event"/>
<button label="Edit" onclick="$row_cont[edit_link]" id="edit[$row_cont[id]]" image="edit" statustext="Edit this event"/>
<button label="Delete" onclick="return confirm('Delete this event');" id="delete[$row_cont[id]]" image="delete" statustext="Delete this event"/>
<checkbox align="right" id="checked[]" options="$row_cont[id]:$row_cont[recur_date]" statustext="Select multiple contacts for a further action"/>
<button statustext="View this event" label="View" id="view[$row_cont[id]]" onclick="window.open(egw::link('/index.php','menuaction=calendar.calendar_uiforms.edit&amp;cal_id=$row_cont[id]&amp;date=$row_cont[date]'),'425','dependent=yes,width=750,height=450,scrollbars=yes,status=yes'); return false;" image="view"/>
<button statustext="Edit this event" label="Edit" id="edit[$row_cont[id]]" onclick="$row_cont[edit_link]" image="edit"/>
<button statustext="Delete this event" label="Delete" id="delete[$row_cont[id]]" onclick="return confirm('Delete this event');" image="delete"/>
<checkbox align="right" statustext="Select multiple contacts for a further action" id="checked[]" options="$row_cont[id]:$row_cont[recur_date]"/>
</hbox>
<hbox options="0,0">
<button image="etemplate/merge" label="merge" id="document[$row_cont[id]:$row_cont[recur_date]]"/>
<button label="Filemanager" image="filemanager/navbar" id="filemanager[$row_cont[id]]" class="image16" onclick="window.location.href=egw::link('/index.php','menuaction=filemanager.filemanager_ui.index&amp;path=/apps/calendar/$row_cont[id]'); return false;"/>
<button image="timesheet" label="Add timesheet entry" id="timesheet[$row_cont[info_id]]" onclick="window.open(egw::link('/index.php','menuaction=timesheet.timesheet_ui.edit&amp;link_app[]=$row_cont[app]&amp;cat_id=$row_cont[category]&amp;link_id[]=$row_cont[app_id]$row_cont[extra_links]'),'_blank','dependent=yes,width=600,height=400,scrollbars=yes,status=yes'); return false;"/>
<button label="merge" id="document[$row_cont[id]:$row_cont[recur_date]]" image="etemplate/merge"/>
<button label="Filemanager" id="filemanager[$row_cont[id]]" onclick="window.location.href=egw::link('/index.php','menuaction=filemanager.filemanager_ui.index&amp;path=/apps/calendar/$row_cont[id]'); return false;" image="filemanager/navbar" class="image16"/>
<button label="Add timesheet entry" id="timesheet[$row_cont[info_id]]" onclick="window.open(egw::link('/index.php','menuaction=timesheet.timesheet_ui.edit&amp;link_app[]=$row_cont[app]&amp;cat_id=$row_cont[category]&amp;link_id[]=$row_cont[app_id]$row_cont[extra_links]'),'_blank','dependent=yes,width=600,height=400,scrollbars=yes,status=yes'); return false;" image="timesheet"/>
</hbox>
</vbox>
</row>
@ -119,11 +119,11 @@
<rows>
<row disabled="!@css">
<description/>
<html span="all" id="css"/>
<html id="css" span="all"/>
</row>
<row disabled="!@msg">
<description align="center" no_lang="1" id="msg" span="all" class="redItalic"/>
<description align="center" no_lang="1" id="msg" class="redItalic"/>
<description align="center" id="msg" no_lang="1" span="all" class="redItalic"/>
<description align="center" id="msg" no_lang="1" class="redItalic"/>
</row>
<row>
<nextmatch id="nm" options="calendar.list.rows" span="all"/>
@ -131,8 +131,8 @@
<row class="noPrint" disabled="!@nm[selectcols]=/legacy_actions/">
<description/>
<hbox align="right">
<buttononly label="Select action" onclick="if (!egw_objectManager.executeActionImplementation(this, 'popup')) alert(egw::lang('You need to select some entries first!')); return false;;" id="legacy_actions" statustext="Select action"/>
<button label="Check all" onclick="egw_objectManager.toggleAllSelected(); return false;" needed="1" id="check_all" image="arrow_ltr" statustext="Check all" class="checkAllArrow"/>
<buttononly statustext="Select action" label="Select action" id="legacy_actions" onclick="if (!egw_objectManager.executeActionImplementation(this, 'popup')) alert(egw::lang('You need to select some entries first!')); return false;;"/>
<button statustext="Check all" label="Check all" id="check_all" needed="1" onclick="egw_objectManager.toggleAllSelected(); return false;" image="arrow_ltr" class="checkAllArrow"/>
</hbox>
</row>
</rows>