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

This commit is contained in:
Ralf Becker 2011-05-06 13:28:07 +00:00
parent 59a91269e9
commit 848cde1489
3 changed files with 74 additions and 83 deletions

View File

@ -374,12 +374,14 @@ class addressbook_ui extends addressbook_bo
'caption' => 'New',
'url' => 'menuaction=addressbook.addressbook_ui.edit',
'popup' => egw_link::get_registry('addressbook', 'add_popup'),
'icon' => 'new',
),
'copy' => array(
'caption' => 'Copy',
'url' => 'menuaction=addressbook.addressbook_ui.edit&makecp=1&contact_id=$id',
'popup' => egw_link::get_registry('addressbook', 'add_popup'),
'allowOnMultiple' => false,
'icon' => 'copy',
),
),
),

File diff suppressed because one or more lines are too long

View File

@ -2,14 +2,14 @@
<!-- $Id$ -->
<overlay>
<template id="addressbook.index.left" template="" lang="" group="0" version="1.3.001">
<menulist class="bold">
<menupopup rows="1" cols="1" id="org_view" no_lang="1" statustext="Select a view" onchange="1" options="All contacts"/>
<menulist>
<menupopup class="bold" cols="1" statustext="Select a view" id="org_view" no_lang="1" onchange="1" rows="1" options="All contacts"/>
</menulist>
</template>
<template id="addressbook.index.right_add" template="" lang="" group="0" version="1.7.001">
<hbox>
<buttononly id="search" label="Advanced search" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.search'),'_blank','dependent=yes,width=850,height=440,scrollbars=yes,status=yes'); return false;"/>
<buttononly id="add" label="Add" statustext="Add a new contact" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.edit'),'_blank','dependent=yes,width=850,height=440,scrollbars=yes,status=yes'); return false;" class="rightPadAdd"/>
<buttononly label="Advanced search" id="search" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.search'),'_blank','dependent=yes,width=850,height=440,scrollbars=yes,status=yes'); return false;"/>
<buttononly statustext="Add a new contact" label="Add" id="add" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.edit'),'_blank','dependent=yes,width=850,height=440,scrollbars=yes,status=yes'); return false;" class="rightPadAdd"/>
</hbox>
<styles>.rightPadAdd { width: 30px; }</styles>
</template>
@ -45,7 +45,7 @@
</columns>
<rows>
<row disabled="!@order=n_fileas">
<nextmatch-sortheader span="all" label="own sorting" id="n_fileas"/>
<nextmatch-sortheader label="own sorting" id="n_fileas" span="all"/>
</row>
<row disabled="!@order=n_given">
<nextmatch-sortheader label="Firstname" id="n_given"/>
@ -56,14 +56,14 @@
<nextmatch-sortheader label="Firstname" id="n_given"/>
</row>
<row>
<nextmatch-sortheader label="Organisation" span="all" id="org_name"/>
<nextmatch-sortheader label="Organisation" id="org_name" span="all"/>
</row>
<row disabled="!@order=/^(org_name|n_fileas|adr_one_postalcode|contact_modified|contact_created|#)/">
<nextmatch-sortheader label="Name" id="n_family"/>
<nextmatch-sortheader label="Firstname" id="n_given" class="leftPad5"/>
</row>
<row disabled="@order=n_fileas">
<nextmatch-sortheader span="all" label="own sorting" id="n_fileas"/>
<nextmatch-sortheader label="own sorting" id="n_fileas" span="all"/>
</row>
</rows>
</grid>
@ -103,67 +103,67 @@
</vbox>
<hbox align="center" class="noPrint">
<nextmatch-header align="center" label="Actions" 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"/>
<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[cat_id] $row_cont[class]" valign="top">
<image label="$row_cont[type_label]" align="center" no_lang="1" src="${row}[type]"/>
<image align="center" label="$row_cont[type_label]" src="${row}[type]" no_lang="1"/>
<vbox id="${row}[id]" options="0,0">
<description no_lang="1" id="${row}[line1]"/>
<description no_lang="1" id="${row}[line2]"/>
<description no_lang="1" id="${row}[org_unit]"/>
<description no_lang="1" id="${row}[title]"/>
<description no_lang="1" id="${row}[first_org]"/>
<description id="${row}[line1]" no_lang="1"/>
<description id="${row}[line2]" no_lang="1"/>
<description id="${row}[org_unit]" no_lang="1"/>
<description id="${row}[title]" no_lang="1"/>
<description id="${row}[first_org]" no_lang="1"/>
</vbox>
<description id="${row}[role]"/>
<menulist>
<menupopup type="select-cat" readonly="true" id="${row}[cat_id]" options="1"/>
<menupopup type="select-cat" id="${row}[cat_id]" readonly="true" options="1"/>
</menulist>
<image src="${row}[photo]" class="iphoto"/>
<date readonly="true" id="${row}[bday]" options="Y-m-d"/>
<date id="${row}[bday]" readonly="true" options="Y-m-d"/>
<vbox options="0,0">
<description no_lang="1" id="${row}[adr_one_countryname]"/>
<description id="${row}[adr_one_countryname]" no_lang="1"/>
<menulist>
<menupopup type="select-country" readonly="true" id="${row}[adr_one_countrycode]"/>
<menupopup type="select-country" id="${row}[adr_one_countrycode]" readonly="true"/>
</menulist>
<hbox orient="0" options="0,0">
<description no_lang="1" id="${row}[adr_one_locality]"/>
<description no_lang="1" id="${row}[adr_one_region]" class="leftPad5"/>
<description no_lang="1" id="${row}[adr_one_postalcode]" value=" " class="leftPad5"/>
<description id="${row}[adr_one_locality]" no_lang="1"/>
<description id="${row}[adr_one_region]" no_lang="1" class="leftPad5"/>
<description value=" " id="${row}[adr_one_postalcode]" no_lang="1" class="leftPad5"/>
</hbox>
<description no_lang="1" id="${row}[adr_one_street]"/>
<description no_lang="1" id="${row}[adr_one_street2]"/>
<description id="${row}[adr_one_street]" no_lang="1"/>
<description id="${row}[adr_one_street2]" no_lang="1"/>
</vbox>
<vbox options="0,0">
<description no_lang="1" id="${row}[adr_two_countryname]"/>
<description id="${row}[adr_two_countryname]" no_lang="1"/>
<menulist>
<menupopup type="select-country" readonly="true" id="${row}[adr_two_countrycode]"/>
<menupopup type="select-country" id="${row}[adr_two_countrycode]" readonly="true"/>
</menulist>
<hbox options="0,0">
<description no_lang="1" id="${row}[adr_two_locality]"/>
<description no_lang="1" id="${row}[adr_two_region]" class="leftPad5"/>
<description no_lang="1" id="${row}[adr_two_postalcode]" value=" " class="leftPad5"/>
<description id="${row}[adr_two_locality]" no_lang="1"/>
<description id="${row}[adr_two_region]" no_lang="1" class="leftPad5"/>
<description value=" " id="${row}[adr_two_postalcode]" no_lang="1" class="leftPad5"/>
</hbox>
<description no_lang="1" id="${row}[adr_two_street]"/>
<description no_lang="1" id="${row}[adr_two_street2]"/>
<description id="${row}[adr_two_street]" no_lang="1"/>
<description id="${row}[adr_two_street2]" no_lang="1"/>
</vbox>
<vbox options="0,0">
<url-phone readonly="true" id="${row}[tel_work]" class="telNumbers"/>
<url-phone readonly="true" id="${row}[tel_cell]" class="telNumbers"/>
<url-phone readonly="true" id="${row}[tel_home]" class="telNumbers"/>
<url-phone readonly="true" id="${row}[tel_fax]"/>
<description no_lang="1" id="${row}[tel_prefered]" options=",$row_cont[tel_prefered_link],,,calling,$cont[call_popup]"/>
<url-phone id="${row}[tel_work]" readonly="true" class="telNumbers"/>
<url-phone id="${row}[tel_cell]" readonly="true" class="telNumbers"/>
<url-phone id="${row}[tel_home]" readonly="true" class="telNumbers"/>
<url-phone id="${row}[tel_fax]" readonly="true"/>
<description id="${row}[tel_prefered]" no_lang="1" options=",$row_cont[tel_prefered_link],,,calling,$cont[call_popup]"/>
</vbox>
<vbox options="0,0">
<url readonly="true" id="${row}[url]" class="fixedHeight"/>
<url-email readonly="true" id="${row}[email]" class="fixedHeight"/>
<url-email readonly="true" id="${row}[email_home]" class="fixedHeight"/>
<url id="${row}[url]" readonly="true" class="fixedHeight"/>
<url-email id="${row}[email]" readonly="true" class="fixedHeight"/>
<url-email id="${row}[email_home]" readonly="true" class="fixedHeight"/>
</vbox>
<customfields-list rows="1" cols="1" id="$row" class="customfields"/>
<textbox multiline="true" no_lang="1" readonly="true" id="${row}[note]"/>
<customfields-list cols="1" id="$row" rows="1" class="customfields"/>
<textbox multiline="true" id="${row}[note]" no_lang="1" readonly="true"/>
<description id="${row}[distrib_lists]"/>
<menulist>
<menupopup readonly="true" id="${row}[owner]"/>
<menupopup id="${row}[owner]" readonly="true"/>
</menulist>
<description id="${row}[id]" class="contactid"/>
<vbox options="0,0">
@ -171,26 +171,26 @@
<link id="${row}[next_link]"/>
</vbox>
<vbox options="0,0">
<date-time readonly="true" id="${row}[created]" class="noWrap"/>
<date-time id="${row}[created]" readonly="true" class="noWrap"/>
<menulist>
<menupopup type="select-account" readonly="true" id="${row}[creator]"/>
<menupopup type="select-account" id="${row}[creator]" readonly="true"/>
</menulist>
<date-time readonly="true" id="${row}[modified]" class="noBreak"/>
<date-time id="${row}[modified]" readonly="true" class="noBreak"/>
<menulist>
<menupopup type="select-account" readonly="true" id="${row}[modifier]"/>
<menupopup type="select-account" id="${row}[modifier]" readonly="true"/>
</menulist>
</vbox>
<vbox class="noPrint" options="0,0">
<hbox>
<image label="View" options="addressbook.addressbook_ui.view&amp;contact_id=$row_cont[id]" src="view"/>
<button label="Edit" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.edit&amp;contact_id=$row_cont[id]'),'_blank','dependent=yes,width=870,height=460,scrollbars=yes,status=yes'); return false;" id="edit[$row_cont[id]]" image="edit"/>
<button label="Delete" onclick="return confirm('Delete this contact');" id="delete[$row_cont[id]]" image="delete" statustext="Delete this contact"/>
<checkbox align="right" id="checked[]" options="$row_cont[id]" statustext="Select multiple contacts for a further action"/>
<image label="View" src="view" options="addressbook.addressbook_ui.view&amp;contact_id=$row_cont[id]"/>
<button label="Edit" id="edit[$row_cont[id]]" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.edit&amp;contact_id=$row_cont[id]'),'_blank','dependent=yes,width=870,height=460,scrollbars=yes,status=yes'); return false;" image="edit"/>
<button statustext="Delete this contact" label="Delete" id="delete[$row_cont[id]]" onclick="return confirm('Delete this contact');" image="delete"/>
<checkbox align="right" statustext="Select multiple contacts for a further action" id="checked[]" options="$row_cont[id]"/>
</hbox>
<hbox>
<button label="Insert in document" id="document[$row_cont[id]]" image="etemplate/merge" class="image16"/>
<image label="Filemanager" options="/index.php?menuaction=filemanager.filemanager_ui.index&amp;path=/apps/addressbook/$row_cont[id]" src="filemanager/navbar" class="image16"/>
<button label="Add appointment" onclick="window.open(egw::link('/index.php','menuaction=calendar.calendar_uiforms.edit&amp;participants=c$row_cont[id]'),'_blank','dependent=yes,width=750,height=410,scrollbars=yes,status=yes'); return false;" id="calendar" image="calendar/navbar" class="image16"/>
<image label="Filemanager" src="filemanager/navbar" options="/index.php?menuaction=filemanager.filemanager_ui.index&amp;path=/apps/addressbook/$row_cont[id]" class="image16"/>
<button label="Add appointment" id="calendar" onclick="window.open(egw::link('/index.php','menuaction=calendar.calendar_uiforms.edit&amp;participants=c$row_cont[id]'),'_blank','dependent=yes,width=750,height=410,scrollbars=yes,status=yes'); return false;" image="calendar/navbar" class="image16"/>
</hbox>
</vbox>
</row>
@ -203,10 +203,14 @@
<column/>
<column/>
<column/>
<column/>
<column/>
</columns>
<rows>
<row disabled="!@msg">
<description span="all" class="redItalic" align="center" no_lang="1" id="msg"/>
<description align="center" id="msg" no_lang="1" span="all" class="redItalic"/>
<description/>
<description/>
<description/>
<description/>
</row>
@ -215,13 +219,13 @@
<template align="right" id="addressbook.index.right_add"/>
</row>
<row>
<nextmatch span="all" id="nm" options="addressbook.index.rows"/>
<nextmatch id="nm" options="addressbook.index.rows" span="all"/>
</row>
<row class="noPrint" disabled="!@nm[selectcols]=/legacy_actions/">
<button label="Add" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.edit'),'_blank','dependent=yes,width=850,height=440,scrollbars=yes,status=yes'); return false;" id="add" statustext="Add a new contact"/>
<button statustext="Add a new contact" label="Add" id="add" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.edit'),'_blank','dependent=yes,width=850,height=440,scrollbars=yes,status=yes'); return false;"/>
<hbox align="right" span="all">
<buttononly id="legacy_actions" statustext="Select action" label="Select action" onclick="if (!egw_objectManager.executeActionImplementation(this, 'popup')) alert(egw::lang('You need to select some entries first!')); return false;;"/>
<button label="Check all" onclick="toggle_all(this.form,form::name('nm[rows][checked][]')); 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>