forked from extern/egroupware
enable via a class and no more need to set enabled='javascript:nm...' for enableClass or disableClass
This commit is contained in:
parent
60edb83929
commit
594fe78d09
@ -364,7 +364,6 @@ class addressbook_ui extends addressbook_bo
|
|||||||
'url' => 'menuaction=addressbook.addressbook_ui.edit&contact_id=$id',
|
'url' => 'menuaction=addressbook.addressbook_ui.edit&contact_id=$id',
|
||||||
'popup' => egw_link::get_registry('addressbook', 'add_popup'),
|
'popup' => egw_link::get_registry('addressbook', 'add_popup'),
|
||||||
'group' => $group,
|
'group' => $group,
|
||||||
'enabled' => 'javaScript:nm_not_disableClass',
|
|
||||||
'disableClass' => 'rowNoEdit',
|
'disableClass' => 'rowNoEdit',
|
||||||
),
|
),
|
||||||
'add' => array(
|
'add' => array(
|
||||||
@ -438,14 +437,12 @@ class addressbook_ui extends addressbook_bo
|
|||||||
'addressbook',$group,'Add category', 'cat_add_'
|
'addressbook',$group,'Add category', 'cat_add_'
|
||||||
)+array(
|
)+array(
|
||||||
'icon' => 'foldertree_nolines_plus',
|
'icon' => 'foldertree_nolines_plus',
|
||||||
'enabled' => 'javaScript:nm_not_disableClass',
|
|
||||||
'disableClass' => 'rowNoEdit',
|
'disableClass' => 'rowNoEdit',
|
||||||
),
|
),
|
||||||
'cat_del' => nextmatch_widget::category_action(
|
'cat_del' => nextmatch_widget::category_action(
|
||||||
'addressbook',$group,'Delete category', 'cat_del_'
|
'addressbook',$group,'Delete category', 'cat_del_'
|
||||||
)+array(
|
)+array(
|
||||||
'icon' => 'foldertree_nolines_minus',
|
'icon' => 'foldertree_nolines_minus',
|
||||||
'enabled' => 'javaScript:nm_not_disableClass',
|
|
||||||
'disableClass' => 'rowNoEdit',
|
'disableClass' => 'rowNoEdit',
|
||||||
),
|
),
|
||||||
'cat_edit' => array(
|
'cat_edit' => array(
|
||||||
@ -477,7 +474,6 @@ class addressbook_ui extends addressbook_bo
|
|||||||
'children' => $add_lists,
|
'children' => $add_lists,
|
||||||
'prefix' => 'to_list_',
|
'prefix' => 'to_list_',
|
||||||
'icon' => 'foldertree_nolines_plus',
|
'icon' => 'foldertree_nolines_plus',
|
||||||
'enabled' => 'javaScript:nm_not_disableClass',
|
|
||||||
'disableClass' => 'rowNoEdit',
|
'disableClass' => 'rowNoEdit',
|
||||||
),
|
),
|
||||||
'remove_from_list' => array(
|
'remove_from_list' => array(
|
||||||
@ -514,7 +510,6 @@ class addressbook_ui extends addressbook_bo
|
|||||||
'children' => $move2addressbooks,
|
'children' => $move2addressbooks,
|
||||||
'prefix' => 'move_to_',
|
'prefix' => 'move_to_',
|
||||||
'group' => $group,
|
'group' => $group,
|
||||||
'enabled' => 'javaScript:nm_not_disableClass',
|
|
||||||
'disableClass' => 'rowNoDelete',
|
'disableClass' => 'rowNoDelete',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -597,7 +592,6 @@ class addressbook_ui extends addressbook_bo
|
|||||||
'confirm' => 'Delete this contact',
|
'confirm' => 'Delete this contact',
|
||||||
'confirm_multiple' => 'Delete these entries',
|
'confirm_multiple' => 'Delete these entries',
|
||||||
'group' => $group,
|
'group' => $group,
|
||||||
'enabled' => 'javaScript:nm_not_disableClass',
|
|
||||||
'disableClass' => 'rowNoDelete',
|
'disableClass' => 'rowNoDelete',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -606,7 +600,6 @@ class addressbook_ui extends addressbook_bo
|
|||||||
$actions['undelete'] = array(
|
$actions['undelete'] = array(
|
||||||
'caption' => 'Un-delete',
|
'caption' => 'Un-delete',
|
||||||
'group' => $group,
|
'group' => $group,
|
||||||
'enabled' => 'javaScript:nm_not_disableClass',
|
|
||||||
'disableClass' => 'rowNoEdit',
|
'disableClass' => 'rowNoEdit',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -895,7 +895,6 @@ class timesheet_ui extends timesheet_bo
|
|||||||
'url' => 'menuaction=timesheet.timesheet_ui.edit&ts_id=$id',
|
'url' => 'menuaction=timesheet.timesheet_ui.edit&ts_id=$id',
|
||||||
'popup' => egw_link::get_registry('timesheet', 'add_popup'),
|
'popup' => egw_link::get_registry('timesheet', 'add_popup'),
|
||||||
'group' => $group,
|
'group' => $group,
|
||||||
'enabled' => 'javaScript:nm_not_disableClass',
|
|
||||||
'disableClass' => 'rowNoEdit',
|
'disableClass' => 'rowNoEdit',
|
||||||
),
|
),
|
||||||
*/
|
*/
|
||||||
@ -932,7 +931,6 @@ class timesheet_ui extends timesheet_bo
|
|||||||
'confirm' => 'Delete this entry',
|
'confirm' => 'Delete this entry',
|
||||||
'confirm_multiple' => 'Delete these entries',
|
'confirm_multiple' => 'Delete these entries',
|
||||||
'group' => ++$group,
|
'group' => ++$group,
|
||||||
'enabled' => 'javaScript:nm_not_disableClass',
|
|
||||||
'disableClass' => 'rowNoDelete',
|
'disableClass' => 'rowNoDelete',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@ -941,7 +939,7 @@ class timesheet_ui extends timesheet_bo
|
|||||||
{
|
{
|
||||||
if ($actions[$action]['enabled'])
|
if ($actions[$action]['enabled'])
|
||||||
{
|
{
|
||||||
$actions[$action]['enabled'] = 'javaScript:nm_not_disableClass';
|
$actions[$action]['enabled'] = 'javaScript:nm_not_disableClass'; // required!
|
||||||
$actions[$action]['disableClass'] = 'rowNoEdit';
|
$actions[$action]['disableClass'] = 'rowNoEdit';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user