forked from extern/egroupware
Admin - Make statistics locked only when date requires it, access through sidebox menu does not lock
This commit is contained in:
parent
d94f918b89
commit
3c8bf57c74
@ -45,6 +45,8 @@ class admin_ui
|
|||||||
if (admin_statistics::check(false))
|
if (admin_statistics::check(false))
|
||||||
{
|
{
|
||||||
$_GET['load'] = 'admin.admin_statistics.submit';
|
$_GET['load'] = 'admin.admin_statistics.submit';
|
||||||
|
$_GET['ajax'] = 'false';
|
||||||
|
$_GET['required'] = 'true';
|
||||||
}
|
}
|
||||||
$tpl = new Etemplate('admin.index');
|
$tpl = new Etemplate('admin.index');
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ app.classes.admin = AppJS.extend(
|
|||||||
load: function(_url)
|
load: function(_url)
|
||||||
{
|
{
|
||||||
if (this.iframe && this.iframe.getDOMNode().contentDocument.location.href
|
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)/)))
|
!_url.match(/statistics=(postpone|canceled|submitted)/)))
|
||||||
{
|
{
|
||||||
this.egw.message(this.egw.lang('Please submit (or postpone) statistic first'), 'info');
|
this.egw.message(this.egw.lang('Please submit (or postpone) statistic first'), 'info');
|
||||||
@ -173,6 +173,12 @@ app.classes.admin = AppJS.extend(
|
|||||||
{
|
{
|
||||||
this.iframe.set_src(_url);
|
this.iframe.set_src(_url);
|
||||||
}
|
}
|
||||||
|
var m = _url.match(/menuaction=([^&]+)(?:.*appname=(\w+))?/);
|
||||||
|
if(m && m.length >= 2)
|
||||||
|
{
|
||||||
|
var app = m[2] ? m[2] : m[1].split('.')[0];
|
||||||
|
this.tree.set_value('/apps/'+app+'/'+m[1]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user