diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 16bfb951ff..a2a3abc2fc 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -932,8 +932,6 @@ class infolog_ui $actions['delete'] = array( 'caption' => 'Delete', - 'confirm' => 'Are you sure you want to delete this entry ?', - 'confirm_multiple' => 'Are you sure you want to delete these entries ?', 'group' => ++$group, 'disableClass' => 'rowNoDelete', 'onExecute' => 'javaScript:confirm_delete', @@ -1061,7 +1059,7 @@ class infolog_ui case 'delete': $action_msg = $settings == 'sub' ? lang(' (and children) deleted') : lang('deleted'); - //$result = $this->bo->delete($id, $settings=='sub', false, $skip_notifications); + $result = $this->bo->delete($id, $settings=='sub', false, $skip_notifications); if($result == true) { $success++; diff --git a/infolog/js/index.js b/infolog/js/index.js index fce26c10ff..8fd75dd3c5 100644 --- a/infolog/js/index.js +++ b/infolog/js/index.js @@ -63,16 +63,15 @@ function hide_popup(element, div_id) function confirm_delete(_action, _senders) { var child_button = document.getElementById('exec[delete_sub]'); - var d_prompt = document.getElementById('delete_prompt'); - if(d_prompt.previousSibling) $(d_prompt.previousSibling).remove(); var children = false; if(child_button) { for(var i = 0; i < _senders.length; i++) { - children = children || $(_senders[i].iface.node).hasClass('rowHasSubs'); + if ($(_senders[i].iface.node).hasClass('rowHasSubs')) { + children = true; + break; + } } child_button.style.display = children ? 'block' : 'none'; - - $(d_prompt).text(_senders.length > 1 ? _action.data.confirm_multiple : _action.data.confirm); } open_popup(_action, _senders); } diff --git a/infolog/setup/etemplates.inc.php b/infolog/setup/etemplates.inc.php index 4facee3149..556ebe46ba 100644 --- a/infolog/setup/etemplates.inc.php +++ b/infolog/setup/etemplates.inc.php @@ -2,7 +2,7 @@ /** * eGroupWare - eTemplates for Application infolog * http://www.egroupware.org - * generated by soetemplate::dump4setup() 2011-05-04 11:40 + * generated by soetemplate::dump4setup() 2011-05-05 08:28 * * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @package infolog @@ -60,7 +60,7 @@ $templ_data[] = array('name' => 'infolog.export_csv_selectors','template' => '', $templ_data[] = array('name' => 'infolog.importexport_wizard_chooseowner','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:6:{i:0;a:1:{s:2:"h2";s:14:",@no_owner_map";}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"name";s:3:"msg";s:7:"no_lang";s:1:"1";}}i:2;a:1:{s:1:"A";a:3:{s:4:"type";s:8:"checkbox";s:5:"label";s:30:"Use field from CSV if possible";s:4:"name";s:14:"owner_from_csv";}}i:3;a:1:{s:1:"A";a:2:{s:4:"type";s:14:"select-account";s:4:"name";s:12:"record_owner";}}i:4;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}i:5;a:1:{s:1:"A";a:3:{s:4:"type";s:11:"select-bool";s:5:"label";s:26:"Change owner when updating";s:4:"name";s:12:"change_owner";}}}s:4:"rows";i:5;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1286389863',); -$templ_data[] = array('name' => 'infolog.index','template' => '','lang' => '','group' => '0','version' => '1.9.002','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:6:{s:1:"A";s:3:"70%";s:2:"h1";s:6:",!@css";s:2:"h2";s:6:",!@msg";s:2:"h3";s:2:",1";s:2:"c5";s:7:"noPrint";s:2:"h5";s:27:",!@nm[selectcols]=/actions/";}i:1;a:2:{s:1:"A";a:3:{s:4:"span";s:3:"all";s:4:"name";s:3:"css";s:4:"type";s:4:"html";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:3:{s:1:"A";a:5:{s:4:"span";s:13:"all,redItalic";s:5:"align";s:6:"center";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:3;a:2:{s:1:"A";a:2:{s:4:"name";s:11:"header_left";s:4:"type";s:8:"template";}s:1:"B";a:2:{s:4:"name";s:12:"header_right";s:4:"type";s:8:"template";}}i:4;a:3:{s:1:"A";a:4:{s:4:"span";s:3:"all";s:4:"name";s:2:"nm";s:4:"size";s:18:"infolog.index.rows";s:4:"type";s:9:"nextmatch";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:5;a:2:{s:1:"A";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:5:{s:5:"label";s:3:"Add";s:7:"onclick";s:245:"window.open(egw::link(\'/index.php\',\'menuaction=infolog.infolog_ui.edit&type=note&action=$cont[action]&action_id=$cont[action_id]&cat_id={$cont[nm][cat_id]}\'),\'_blank\',\'dependent=yes,width=750,height=600,scrollbars=yes,status=yes\'); return false;";s:4:"name";s:9:"add[note]";s:4:"type";s:6:"button";s:4:"help";s:15:"Add a new Entry";}i:2;a:4:{s:5:"label";s:6:"Cancel";s:4:"name";s:6:"cancel";s:4:"type";s:6:"button";s:4:"help";s:17:"Back to main list";}}s:1:"B";a:6:{s:5:"align";s:5:"right";s:6:"orient";s:1:"0";s:4:"size";s:1:"2";s:4:"type";s:4:"hbox";i:1;a:5:{s:5:"label";s:13:"Select action";s:7:"onclick";s:141:"if (!egw_objectManager.executeActionImplementation(this, \'popup\')) alert(egw::lang(\'You need to select some entries first!\')); return false;;";s:4:"name";s:14:"legacy_actions";s:4:"type";s:10:"buttononly";s:4:"help";s:13:"Select action";}i:2;a:8:{s:5:"label";s:9:"Check all";s:7:"onclick";s:52:"egw_objectManager.toggleAllSelected(); return false;";s:6:"needed";s:1:"1";s:4:"name";s:9:"check_all";s:4:"type";s:6:"button";s:4:"size";s:9:"arrow_ltr";s:4:"help";s:9:"Check all";s:4:"span";s:14:",checkAllArrow";}}}i:6;a:2:{s:1:"A";a:5:{s:5:"class";s:19:"action_popup prompt";s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:6:{s:5:"class";s:19:"action_popup prompt";s:4:"name";s:17:"responsible_popup";s:4:"type";s:3:"box";s:4:"size";s:1:"1";i:1;a:6:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"4";i:1;a:3:{s:4:"type";s:5:"label";s:5:"label";s:18:"Change responsible";s:4:"span";s:13:",promptheader";}i:2;a:2:{s:4:"type";s:5:"label";s:5:"label";s:22:"Select users or groups";}i:3;a:4:{s:4:"type";s:14:"select-account";s:4:"name";s:11:"responsible";s:4:"size";s:6:"5,both";s:4:"span";s:21:",action_popup-content";}i:4;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:5:"label";s:3:"Add";s:7:"onclick";s:33:"submit_popup(this); return false;";s:4:"name";s:23:"responsible_action[add]";s:4:"type";s:6:"button";}i:2;a:4:{s:5:"label";s:6:"Delete";s:7:"onclick";s:33:"submit_popup(this); return false;";s:4:"name";s:26:"responsible_action[delete]";s:4:"type";s:6:"button";}i:3;a:3:{s:5:"label";s:6:"Cancel";s:7:"onclick";s:37:"hide_popup(this,\'responsible_popup\');";s:4:"type";s:10:"buttononly";}}}s:4:"span";s:20:",action_popup prompt";}i:2;a:6:{s:5:"class";s:19:"action_popup prompt";s:4:"name";s:12:"delete_popup";s:4:"type";s:3:"box";s:4:"size";s:1:"1";i:1;a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:5:"label";s:5:"label";s:6:"Delete";s:4:"span";s:13:",promptheader";}i:2;a:3:{s:4:"type";s:5:"label";s:5:"label";s:24:"Delete selected entries?";s:4:"name";s:13:"delete_prompt";}i:3;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:5:"label";s:6:"Delete";s:7:"onclick";s:33:"submit_popup(this); return false;";s:4:"name";s:6:"delete";s:4:"type";s:6:"button";}i:2;a:4:{s:5:"label";s:28:"Delete including sub-entries";s:7:"onclick";s:71:"infolog_popup_action.id = \'delete_sub\';submit_popup(this);return false;";s:4:"name";s:10:"delete_sub";s:4:"type";s:6:"button";}i:3;a:3:{s:5:"label";s:6:"Cancel";s:7:"onclick";s:32:"hide_popup(this,\'delete_popup\');";s:4:"type";s:10:"buttononly";}}}s:4:"span";s:20:",action_popup prompt";}}s:1:"B";a:6:{s:5:"class";s:19:"action_popup prompt";s:4:"name";s:10:"link_popup";s:4:"type";s:3:"box";s:4:"size";s:1:"1";i:1;a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:5:"label";s:5:"label";s:17:"Add / Remove link";s:4:"span";s:13:",promptheader";}i:2;a:3:{s:4:"name";s:4:"link";s:4:"type";s:10:"link-entry";s:4:"span";s:21:",action_popup-content";}i:3;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:5:"label";s:3:"Add";s:7:"onclick";s:33:"submit_popup(this); return false;";s:4:"name";s:16:"link_action[add]";s:4:"type";s:6:"button";}i:2;a:4:{s:5:"label";s:6:"Delete";s:7:"onclick";s:33:"submit_popup(this); return false;";s:4:"name";s:19:"link_action[delete]";s:4:"type";s:6:"button";}i:3;a:3:{s:5:"label";s:6:"Cancel";s:7:"onclick";s:30:"hide_popup(this,\'link_popup\');";s:4:"type";s:10:"buttononly";}}}s:4:"span";s:20:",action_popup prompt";}}}s:4:"cols";i:3;s:4:"rows";i:6;s:4:"size";s:12:"100%,,0,,0,0";}}','size' => '100%,,0,,0,0','style' => '/** +$templ_data[] = array('name' => 'infolog.index','template' => '','lang' => '','group' => '0','version' => '1.9.002','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:6:{s:1:"A";s:3:"70%";s:2:"h1";s:6:",!@css";s:2:"h2";s:6:",!@msg";s:2:"h3";s:2:",1";s:2:"c5";s:7:"noPrint";s:2:"h5";s:27:",!@nm[selectcols]=/actions/";}i:1;a:2:{s:1:"A";a:3:{s:4:"span";s:3:"all";s:4:"name";s:3:"css";s:4:"type";s:4:"html";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:3:{s:1:"A";a:5:{s:4:"span";s:13:"all,redItalic";s:5:"align";s:6:"center";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:3;a:2:{s:1:"A";a:2:{s:4:"name";s:11:"header_left";s:4:"type";s:8:"template";}s:1:"B";a:2:{s:4:"name";s:12:"header_right";s:4:"type";s:8:"template";}}i:4;a:3:{s:1:"A";a:4:{s:4:"span";s:3:"all";s:4:"name";s:2:"nm";s:4:"size";s:18:"infolog.index.rows";s:4:"type";s:9:"nextmatch";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:5;a:2:{s:1:"A";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:5:{s:5:"label";s:3:"Add";s:7:"onclick";s:245:"window.open(egw::link(\'/index.php\',\'menuaction=infolog.infolog_ui.edit&type=note&action=$cont[action]&action_id=$cont[action_id]&cat_id={$cont[nm][cat_id]}\'),\'_blank\',\'dependent=yes,width=750,height=600,scrollbars=yes,status=yes\'); return false;";s:4:"name";s:9:"add[note]";s:4:"type";s:6:"button";s:4:"help";s:15:"Add a new Entry";}i:2;a:4:{s:5:"label";s:6:"Cancel";s:4:"name";s:6:"cancel";s:4:"type";s:6:"button";s:4:"help";s:17:"Back to main list";}}s:1:"B";a:7:{s:5:"align";s:5:"right";s:6:"orient";s:1:"0";s:4:"size";s:1:"2";s:4:"type";s:4:"hbox";i:1;a:5:{s:5:"label";s:13:"Select action";s:7:"onclick";s:141:"if (!egw_objectManager.executeActionImplementation(this, \'popup\')) alert(egw::lang(\'You need to select some entries first!\')); return false;;";s:4:"name";s:14:"legacy_actions";s:4:"type";s:10:"buttononly";s:4:"help";s:13:"Select action";}i:2;a:8:{s:5:"label";s:9:"Check all";s:7:"onclick";s:52:"egw_objectManager.toggleAllSelected(); return false;";s:6:"needed";s:1:"1";s:4:"name";s:9:"check_all";s:4:"type";s:6:"button";s:4:"size";s:9:"arrow_ltr";s:4:"help";s:9:"Check all";s:4:"span";s:14:",checkAllArrow";}s:4:"span";s:3:"all";}}i:6;a:2:{s:1:"A";a:5:{s:5:"class";s:19:"action_popup prompt";s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:6:{s:5:"class";s:19:"action_popup prompt";s:4:"name";s:17:"responsible_popup";s:4:"type";s:3:"box";s:4:"size";s:1:"1";i:1;a:6:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"4";i:1;a:3:{s:4:"type";s:5:"label";s:5:"label";s:18:"Change responsible";s:4:"span";s:13:",promptheader";}i:2;a:2:{s:4:"type";s:5:"label";s:5:"label";s:22:"Select users or groups";}i:3;a:4:{s:4:"type";s:14:"select-account";s:4:"name";s:11:"responsible";s:4:"size";s:6:"5,both";s:4:"span";s:21:",action_popup-content";}i:4;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:5:"label";s:3:"Add";s:7:"onclick";s:33:"submit_popup(this); return false;";s:4:"name";s:23:"responsible_action[add]";s:4:"type";s:6:"button";}i:2;a:4:{s:5:"label";s:6:"Delete";s:7:"onclick";s:33:"submit_popup(this); return false;";s:4:"name";s:26:"responsible_action[delete]";s:4:"type";s:6:"button";}i:3;a:3:{s:5:"label";s:6:"Cancel";s:7:"onclick";s:37:"hide_popup(this,\'responsible_popup\');";s:4:"type";s:10:"buttononly";}}}s:4:"span";s:20:",action_popup prompt";}i:2;a:6:{s:5:"class";s:19:"action_popup prompt";s:4:"name";s:12:"delete_popup";s:4:"type";s:3:"box";s:4:"size";s:1:"1";i:1;a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:5:"label";s:5:"label";s:6:"Delete";s:4:"span";s:13:",promptheader";}i:2;a:3:{s:4:"type";s:5:"label";s:5:"label";s:24:"Delete selected entries?";s:4:"name";s:13:"delete_prompt";}i:3;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:5:"label";s:12:"Yes - Delete";s:7:"onclick";s:33:"submit_popup(this); return false;";s:4:"name";s:6:"delete";s:4:"type";s:6:"button";}i:2;a:4:{s:5:"label";s:34:"Yes - Delete including sub-entries";s:7:"onclick";s:71:"infolog_popup_action.id = \'delete_sub\';submit_popup(this);return false;";s:4:"name";s:10:"delete_sub";s:4:"type";s:6:"button";}i:3;a:3:{s:5:"label";s:11:"No - Cancel";s:7:"onclick";s:32:"hide_popup(this,\'delete_popup\');";s:4:"type";s:10:"buttononly";}}}s:4:"span";s:20:",action_popup prompt";}}s:1:"B";a:6:{s:5:"class";s:19:"action_popup prompt";s:4:"name";s:10:"link_popup";s:4:"type";s:3:"box";s:4:"size";s:1:"1";i:1;a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:5:"label";s:5:"label";s:17:"Add / Remove link";s:4:"span";s:13:",promptheader";}i:2;a:3:{s:4:"name";s:4:"link";s:4:"type";s:10:"link-entry";s:4:"span";s:21:",action_popup-content";}i:3;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:4:{s:5:"label";s:3:"Add";s:7:"onclick";s:33:"submit_popup(this); return false;";s:4:"name";s:16:"link_action[add]";s:4:"type";s:6:"button";}i:2;a:4:{s:5:"label";s:6:"Delete";s:7:"onclick";s:33:"submit_popup(this); return false;";s:4:"name";s:19:"link_action[delete]";s:4:"type";s:6:"button";}i:3;a:3:{s:5:"label";s:6:"Cancel";s:7:"onclick";s:30:"hide_popup(this,\'link_popup\');";s:4:"type";s:10:"buttononly";}}}s:4:"span";s:20:",action_popup prompt";}}}s:4:"cols";i:3;s:4:"rows";i:6;s:4:"size";s:12:"100%,,0,,0,0";}}','size' => '100%,,0,,0,0','style' => '/** * Add / remove link or category popup used for actions on multiple entries */ diff --git a/infolog/templates/default/index.xet b/infolog/templates/default/index.xet index 6b1cbf59b0..084b4ba2e6 100644 --- a/infolog/templates/default/index.xet +++ b/infolog/templates/default/index.xet @@ -2,15 +2,15 @@