Add 'All users' option to allowed users in definition list popup

This commit is contained in:
Nathan Gray 2012-06-20 17:34:03 +00:00
parent 85950517a1
commit 343deeab7c
3 changed files with 5 additions and 4 deletions

View File

@ -127,9 +127,9 @@ class importexport_definitions_ui
// Action has an additional parameter
if(in_array($content['nm']['action'], array('owner', 'allowed')))
{
if($content['nm']['action'] == 'allowed' && $content['allowed_private'])
if($content['nm']['action'] == 'allowed')
{
$content['allowed'] = null;
$content['allowed'] = $content['allowed_private'] ? null : ($content['all_users'] ? 'all' : implode(',',$content['allowed']));
}
if(is_array($content[$content['nm']['action']]))
{

File diff suppressed because one or more lines are too long

View File

@ -87,6 +87,7 @@
<description value="Change allowed users" class="promptheader"/>
<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"/>
<hbox>
<button label="Save" onclick="nm_submit_popup(this); return false;"/>