egroupware_official/jdots/js/egw_fw_classes.js
Ralf Becker 095567423d * Stylite template got an application header again
and other bugfixes for the tab restore: commits r1436-44
2010-11-21 13:35:12 +00:00

60 lines
1.2 KiB
JavaScript

/**
* eGroupware JavaScript Framework - Non UI classes
*
* @link http://www.egroupware.org
* @author Andreas Stoeckel <as@stylite.de>
* @version $Id$
*/
/*----------------------------
Class egw_fw_class_application
----------------------------*/
function egw_fw_class_application(_parentFw, _appName, _displayName, _icon,
_indexUrl, _sideboxWidth, _legacyApp)
{
//Copy the application properties
this.appName = _appName;
this.displayName = _displayName;
this.icon = _icon;
this.indexUrl = _indexUrl;
this.sidebox_md5 = '';
this.legacyApp = _legacyApp;
this.hasPrerequisites;
this.website_title = '';
this.app_header = '';
this.sideboxWidth = _sideboxWidth;
//Setup a link to the parent framework class
this.parentFw = _parentFw;
//Preset some variables
this.hasSideboxMenuContent = false;
this.sidemenuEntry = null;
this.tab = null;
this.browser = null;
}
/*----------------------------
Class egw_fw_class_callback
----------------------------*/
function egw_fw_class_callback(_context, _proc)
{
this.context = _context;
this.proc = _proc;
}
egw_fw_class_callback.prototype.call = function()
{
return this.proc.apply(this.context, arguments);
}
Array.prototype.remove = function(index)
{
this.splice(index, 1);
}