mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-14 10:28:31 +02:00
remove "admin_" prefix from et2 ids
This commit is contained in:
@ -66,10 +66,16 @@ app.admin = AppJS.extend(
|
||||
|
||||
this.et2 = _et2.widgetContainer;
|
||||
|
||||
var iframe = this.iframe = this.et2.getWidgetById('admin_iframe');
|
||||
if (iframe) iframe.set_src(egw.webserverUrl+'/admin/index.php');
|
||||
|
||||
var splitter = this.splitter = this.et2.getWidgetById('admin_splitter');
|
||||
var iframe = this.iframe = this.et2.getWidgetById('iframe');
|
||||
if (iframe)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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)
|
||||
*
|
||||
@ -106,7 +129,7 @@ app.admin = AppJS.extend(
|
||||
{
|
||||
this.splitter.undock();
|
||||
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')
|
||||
{
|
||||
|
Reference in New Issue
Block a user