Access dialog

- If current app has no special support, show general dialog instead of message
- Sort apps in add dialog
- Filter app list (filter2) to all apps for run rights, or only supporting apps otherwise
This commit is contained in:
Nathan Gray
2015-09-15 23:59:31 +00:00
parent 4479cf64c5
commit 91750f46c9
3 changed files with 40 additions and 9 deletions

View File

@@ -116,7 +116,7 @@ egw.extend('preferences', egw.MODULE_GLOBAL, function() {
var current_app = this.app_name();
var query = {current_app: current_app};
// give warning, if app does not support given type, but all apps link to common prefs, if they dont support prefs themselfs
if ($j.isArray(apps) && $j.inArray(current_app, apps) == -1 && name != 'prefs' ||
if ($j.isArray(apps) && $j.inArray(current_app, apps) == -1 && (name != 'prefs' && name != 'acl') ||
!$j.isArray(apps) && (typeof apps[current_app] == 'undefined' || !apps[current_app]))
{
egw_message(egw.lang('Not supported by current application!'), 'warning');
@@ -134,7 +134,7 @@ egw.extend('preferences', egw.MODULE_GLOBAL, function() {
case 'acl':
query.menuaction='preferences.preferences_acl.index';
query.acl_app=current_app;
if ($j.inArray(current_app, apps) != -1) query.acl_app=current_app;
egw.open_link(egw.link(url, query), '_blank', '900x450');
break;