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-sortheader label="Recurrence" id="recure"/>
<nextmatch-header label="Category" id="cat_id"/> <nextmatch-header label="Category" id="cat_id"/>
<vbox> <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-sortheader label="Location" id="cal_location"/>
</vbox> </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-sortheader label="Location" id="cal_location"/>
<nextmatch-accountfilter label="Participants" id="participant" options="All"/> <nextmatch-accountfilter label="Participants" id="participant" options="All"/>
<vbox> <vbox>
<nextmatch-sortheader label="Created" id="cal_created"/> <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"/> <description value="Last changed"/>
</vbox> </vbox>
<nextmatch-customfields label="Custom fields" readonly="true" id="cfs"/> <nextmatch-customfields label="Custom fields" id="cfs" readonly="true"/>
<hbox label="Actions" class="noPrint"> <hbox class="noPrint" label="Actions">
<nextmatch-header label="Actions" statustext="Check all" class="noPrint" id="legacy_actions"/> <nextmatch-header statustext="Check all" label="Actions" id="legacy_actions" class="noPrint"/>
<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"/> <button align="right" statustext="Check all" label="Check all" id="check_all" needed="1" onclick="egw_objectManager.toggleAllSelected(); return false;" image="check"/>
</hbox> </hbox>
</row> </row>
<row class="$row_cont[category] $row_cont[class]" valign="top"> <row class="$row_cont[category] $row_cont[class]" valign="top">
<vbox id="start"> <vbox id="start">
<date-time readonly="true" id="${row}[start]" options=",$cont[format]" class="noWrap"/> <date-time id="${row}[start]" readonly="true" options=",$cont[format]" class="noWrap"/>
<date-time readonly="true" id="${row}[end]" options=",$cont[format]" class="noWrap"/> <date-time id="${row}[end]" readonly="true" options=",$cont[format]" class="noWrap"/>
</vbox> </vbox>
<vbox class="listVbox"> <vbox class="listVbox">
<hbox readonly="true" no_lang="1"> <hbox no_lang="1" readonly="true">
<description readonly="true" no_lang="1" id="${row}[title]" options="b"/> <description id="${row}[title]" no_lang="1" readonly="true" options="b"/>
<description value="#%s" id="${row}[id]" options="b" align="right"/> <description align="right" value="#%s" id="${row}[id]" options="b"/>
</hbox> </hbox>
<box no_lang="1" class="listDescription"> <box no_lang="1" class="listDescription">
<description no_lang="1" id="${row}[description]"/> <description id="${row}[description]" no_lang="1"/>
</box> </box>
<description no_lang="1" id="${row}[recure]"/> <description id="${row}[recure]" no_lang="1"/>
</vbox> </vbox>
<hbox> <hbox>
<description id="${row}[title]"/> <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> </hbox>
<description no_lang="1" id="${row}[description]"/> <description id="${row}[description]" no_lang="1"/>
<description id="${row}[recure]"/> <description id="${row}[recure]"/>
<menulist> <menulist>
<menupopup type="select-cat" readonly="true" id="${row}[category]"/> <menupopup type="select-cat" id="${row}[category]" readonly="true"/>
</menulist> </menulist>
<vbox> <vbox>
<menulist> <menulist>
<menupopup type="select-account" class="noWrap" readonly="true" id="${row}[owner]"/> <menupopup type="select-account" class="noWrap" id="${row}[owner]" readonly="true"/>
</menulist> </menulist>
<description no_lang="1" id="${row}[location]"/> <description id="${row}[location]" no_lang="1"/>
</vbox> </vbox>
<menulist> <menulist>
<menupopup type="select-account" class="noWrap" readonly="true" id="${row}[owner]"/> <menupopup type="select-account" class="noWrap" id="${row}[owner]" readonly="true"/>
</menulist> </menulist>
<description no_lang="1" id="${row}[location]"/> <description id="${row}[location]" no_lang="1"/>
<html readonly="true" no_lang="1" id="${row}[parts]"/> <html id="${row}[parts]" no_lang="1" readonly="true"/>
<vbox> <vbox>
<date-time id="${row}[created]" readonly="true"/> <date-time id="${row}[created]" readonly="true"/>
<menulist> <menulist>
@ -95,15 +95,15 @@
<customfields-list id="$row"/> <customfields-list id="$row"/>
<vbox options="0,0" class="noPrint"> <vbox options="0,0" class="noPrint">
<hbox 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 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 label="Edit" onclick="$row_cont[edit_link]" id="edit[$row_cont[id]]" image="edit" statustext="Edit this event"/> <button statustext="Edit this event" label="Edit" id="edit[$row_cont[id]]" onclick="$row_cont[edit_link]" image="edit"/>
<button label="Delete" onclick="return confirm('Delete this event');" id="delete[$row_cont[id]]" image="delete" statustext="Delete this event"/> <button statustext="Delete this event" label="Delete" id="delete[$row_cont[id]]" onclick="return confirm('Delete this event');" image="delete"/>
<checkbox align="right" id="checked[]" options="$row_cont[id]:$row_cont[recur_date]" statustext="Select multiple contacts for a further action"/> <checkbox align="right" statustext="Select multiple contacts for a further action" id="checked[]" options="$row_cont[id]:$row_cont[recur_date]"/>
</hbox> </hbox>
<hbox options="0,0"> <hbox options="0,0">
<button image="etemplate/merge" label="merge" id="document[$row_cont[id]:$row_cont[recur_date]]"/> <button label="merge" id="document[$row_cont[id]:$row_cont[recur_date]]" image="etemplate/merge"/>
<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 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 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="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> </hbox>
</vbox> </vbox>
</row> </row>
@ -119,11 +119,11 @@
<rows> <rows>
<row disabled="!@css"> <row disabled="!@css">
<description/> <description/>
<html span="all" id="css"/> <html id="css" span="all"/>
</row> </row>
<row disabled="!@msg"> <row disabled="!@msg">
<description align="center" no_lang="1" id="msg" span="all" class="redItalic"/> <description align="center" id="msg" no_lang="1" span="all" class="redItalic"/>
<description align="center" no_lang="1" id="msg" class="redItalic"/> <description align="center" id="msg" no_lang="1" class="redItalic"/>
</row> </row>
<row> <row>
<nextmatch id="nm" options="calendar.list.rows" span="all"/> <nextmatch id="nm" options="calendar.list.rows" span="all"/>
@ -131,8 +131,8 @@
<row class="noPrint" disabled="!@nm[selectcols]=/legacy_actions/"> <row class="noPrint" disabled="!@nm[selectcols]=/legacy_actions/">
<description/> <description/>
<hbox align="right"> <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"/> <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 label="Check all" onclick="egw_objectManager.toggleAllSelected(); return false;" needed="1" id="check_all" image="arrow_ltr" statustext="Check all" class="checkAllArrow"/> <button statustext="Check all" label="Check all" id="check_all" needed="1" onclick="egw_objectManager.toggleAllSelected(); return false;" image="arrow_ltr" class="checkAllArrow"/>
</hbox> </hbox>
</row> </row>
</rows> </rows>