mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
- Clear owner & allowed popups after changing
- Make allowed popup user selection not look disabled
This commit is contained in:
parent
57cc6dba1a
commit
bff2bdc6d6
@ -127,6 +127,7 @@ class importexport_definitions_ui
|
|||||||
// Action has an additional parameter
|
// Action has an additional parameter
|
||||||
if(in_array($content['nm']['action'], array('owner', 'allowed')))
|
if(in_array($content['nm']['action'], array('owner', 'allowed')))
|
||||||
{
|
{
|
||||||
|
$action = $content['nm']['action'];
|
||||||
if($content['nm']['action'] == 'allowed')
|
if($content['nm']['action'] == 'allowed')
|
||||||
{
|
{
|
||||||
$content['allowed'] = $content['allowed_private'] ? null : ($content['all_users'] ? 'all' : implode(',',$content['allowed']));
|
$content['allowed'] = $content['allowed_private'] ? null : ($content['all_users'] ? 'all' : implode(',',$content['allowed']));
|
||||||
@ -136,6 +137,7 @@ class importexport_definitions_ui
|
|||||||
$content[$content['nm']['action']] = implode(',',$content[$content['nm']['action']]);
|
$content[$content['nm']['action']] = implode(',',$content[$content['nm']['action']]);
|
||||||
}
|
}
|
||||||
$content['nm']['action'] .= '_' . $content[$content['nm']['action']];
|
$content['nm']['action'] .= '_' . $content[$content['nm']['action']];
|
||||||
|
unset($content[$action]);
|
||||||
}
|
}
|
||||||
if ($this->action($content['nm']['action'],$content['nm']['selected'],$content['nm']['select_all'],
|
if ($this->action($content['nm']['action'],$content['nm']['selected'],$content['nm']['select_all'],
|
||||||
$success,$failed,$action_msg,'index',$msg))
|
$success,$failed,$action_msg,'index',$msg))
|
||||||
|
File diff suppressed because one or more lines are too long
@ -88,7 +88,7 @@
|
|||||||
<description value="Select groups"/>
|
<description value="Select groups"/>
|
||||||
<checkbox label="%s Just me" id="allowed_private"/>
|
<checkbox label="%s Just me" id="allowed_private"/>
|
||||||
<checkbox label="%s All users" id="all_users"/>
|
<checkbox label="%s All users" id="all_users"/>
|
||||||
<listbox type="select-account" id="allowed" rows="5" options="groups" class="action_popup-content"/>
|
<listbox type="select-account" id="allowed" rows="5" options="groups"/>
|
||||||
<hbox>
|
<hbox>
|
||||||
<button label="Save" onclick="nm_submit_popup(this); return false;"/>
|
<button label="Save" onclick="nm_submit_popup(this); return false;"/>
|
||||||
<buttononly label="Cancel" onclick="nm_hide_popup(this,'allowed_popup');"/>
|
<buttononly label="Cancel" onclick="nm_hide_popup(this,'allowed_popup');"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user