- Clear owner & allowed popups after changing

- Make allowed popup user selection not look disabled
This commit is contained in:
Nathan Gray 2012-12-03 22:43:47 +00:00
parent 57cc6dba1a
commit bff2bdc6d6
3 changed files with 6 additions and 4 deletions

View File

@ -127,6 +127,7 @@ class importexport_definitions_ui
// Action has an additional parameter
if(in_array($content['nm']['action'], array('owner', 'allowed')))
{
$action = $content['nm']['action'];
if($content['nm']['action'] == '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['nm']['action'] .= '_' . $content[$content['nm']['action']];
unset($content[$action]);
}
if ($this->action($content['nm']['action'],$content['nm']['selected'],$content['nm']['select_all'],
$success,$failed,$action_msg,'index',$msg))

File diff suppressed because one or more lines are too long

View File

@ -88,7 +88,7 @@
<description value="Select groups"/>
<checkbox label="%s Just me" id="allowed_private"/>
<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>
<button label="Save" onclick="nm_submit_popup(this); return false;"/>
<buttononly label="Cancel" onclick="nm_hide_popup(this,'allowed_popup');"/>