mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-18 12:30:02 +02:00
Admin - Make statistics locked only when date requires it, access through sidebox menu does not lock
This commit is contained in:
@@ -134,7 +134,7 @@ app.classes.admin = AppJS.extend(
|
||||
load: function(_url)
|
||||
{
|
||||
if (this.iframe && this.iframe.getDOMNode().contentDocument.location.href
|
||||
.match(/menuaction=admin.admin_statistics.submit/) && ( !_url ||
|
||||
.match(/menuaction=admin.admin_statistics.submit.+required=true/) && ( !_url ||
|
||||
!_url.match(/statistics=(postpone|canceled|submitted)/)))
|
||||
{
|
||||
this.egw.message(this.egw.lang('Please submit (or postpone) statistic first'), 'info');
|
||||
@@ -176,7 +176,7 @@ app.classes.admin = AppJS.extend(
|
||||
this.iframe.set_src(_url);
|
||||
}
|
||||
var m = _url.match(/menuaction=([^&]+)(?:.*appname=(\w+))?/);
|
||||
if(m.length >= 2)
|
||||
if(m && m.length >= 2)
|
||||
{
|
||||
var app = m[2] ? m[2] : m[1].split('.')[0];
|
||||
this.tree.set_value('/apps/'+app+'/'+m[1]);
|
||||
|
Reference in New Issue
Block a user