mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
remove "admin_" prefix from et2 ids
This commit is contained in:
parent
6f39b0618d
commit
596a01a76d
@ -43,7 +43,7 @@ class admin_ui
|
|||||||
$tpl = new etemplate_new('admin.index');
|
$tpl = new etemplate_new('admin.index');
|
||||||
|
|
||||||
$content = array();
|
$content = array();
|
||||||
$content['admin_nm'] = array(
|
$content['nm'] = array(
|
||||||
'get_rows' => 'admin_ui::get_users',
|
'get_rows' => 'admin_ui::get_users',
|
||||||
'no_cat' => true,
|
'no_cat' => true,
|
||||||
'no_filter2' => true,
|
'no_filter2' => true,
|
||||||
|
@ -66,10 +66,16 @@ app.admin = AppJS.extend(
|
|||||||
|
|
||||||
this.et2 = _et2.widgetContainer;
|
this.et2 = _et2.widgetContainer;
|
||||||
|
|
||||||
var iframe = this.iframe = this.et2.getWidgetById('admin_iframe');
|
var iframe = this.iframe = this.et2.getWidgetById('iframe');
|
||||||
if (iframe) iframe.set_src(egw.webserverUrl+'/admin/index.php');
|
if (iframe)
|
||||||
|
{
|
||||||
var splitter = this.splitter = this.et2.getWidgetById('admin_splitter');
|
iframe.set_src(egw.webserverUrl+'/admin/index.php');
|
||||||
|
var self = this;
|
||||||
|
jQuery(iframe.getDOMNode()).bind('load', function(){
|
||||||
|
self._hide_navbar.call(self);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
var splitter = this.splitter = this.et2.getWidgetById('splitter');
|
||||||
if (splitter)
|
if (splitter)
|
||||||
{
|
{
|
||||||
window.setTimeout(function(){
|
window.setTimeout(function(){
|
||||||
@ -78,6 +84,23 @@ app.admin = AppJS.extend(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hide navbar for idots template
|
||||||
|
*
|
||||||
|
* Just a hack for old idots, not neccesary for jdots
|
||||||
|
*/
|
||||||
|
_hide_navbar: function()
|
||||||
|
{
|
||||||
|
var document = this.iframe.getDOMNode().contentDocument;
|
||||||
|
// hide navbar elements
|
||||||
|
var ids2hide = ['divLogo', 'topmenu', 'divAppIconBar', 'divStatusBar', 'tdSidebox', 'divAppboxHeader'];
|
||||||
|
for(var i=0; i < ids2hide.length; ++i)
|
||||||
|
{
|
||||||
|
var elem = document.getElementById(ids2hide[i]);
|
||||||
|
if (elem) elem.style.display = 'none';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set location of iframe for given _action and _sender (row)
|
* Set location of iframe for given _action and _sender (row)
|
||||||
*
|
*
|
||||||
@ -106,7 +129,7 @@ app.admin = AppJS.extend(
|
|||||||
{
|
{
|
||||||
this.splitter.undock();
|
this.splitter.undock();
|
||||||
var parts = _id.split('/');
|
var parts = _id.split('/');
|
||||||
this.et2.getWidgetById('admin_nm').applyFilters({ filter: parts[2] ? parts[2] : '', search: ''});
|
this.et2.getWidgetById('nm').applyFilters({ filter: parts[2] ? parts[2] : '', search: ''});
|
||||||
}
|
}
|
||||||
else if (typeof link == 'undefined')
|
else if (typeof link == 'undefined')
|
||||||
{
|
{
|
||||||
|
@ -45,9 +45,9 @@
|
|||||||
<template id="admin.index" template="" lang="" group="0" version="1.9.001">
|
<template id="admin.index" template="" lang="" group="0" version="1.9.001">
|
||||||
<tree autoloading="admin_ui::ajax_tree" id="tree" onclick="app.admin.run(widget.event_args[0],widget);" parent_node="admin_tree_target" std_images="orange-ball"/>
|
<tree autoloading="admin_ui::ajax_tree" id="tree" onclick="app.admin.run(widget.event_args[0],widget);" parent_node="admin_tree_target" std_images="orange-ball"/>
|
||||||
<html id="msg"/>
|
<html id="msg"/>
|
||||||
<split dock_side="topDock" id="admin_splitter" orientation="h">
|
<split dock_side="topDock" id="splitter" orientation="h">
|
||||||
<nextmatch id="admin_nm" template="admin.index.rows"/>
|
<nextmatch id="nm" template="admin.index.rows"/>
|
||||||
<iframe frameborder="1" height="500px" id="admin_iframe" scrolling="auto" width="100%"/>
|
<iframe frameborder="1" height="500px" id="iframe" scrolling="auto" width="100%"/>
|
||||||
</split>
|
</split>
|
||||||
</template>
|
</template>
|
||||||
</overlay>
|
</overlay>
|
||||||
|
Loading…
Reference in New Issue
Block a user