2011-08-10 16:36:31 +02:00
|
|
|
/**
|
|
|
|
* eGroupWare eTemplate2 - JS Box object
|
|
|
|
*
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @package etemplate
|
|
|
|
* @subpackage api
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @author Andreas Stöckel
|
|
|
|
* @copyright Stylite 2011
|
|
|
|
* @version $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
/*egw:uses
|
|
|
|
jquery.jquery;
|
|
|
|
et2_baseWidget;
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class which implements the hbox and vbox tag
|
|
|
|
*/
|
|
|
|
var et2_box = et2_baseWidget.extend({
|
|
|
|
|
2011-08-19 18:00:44 +02:00
|
|
|
createNamespace: true,
|
|
|
|
|
|
|
|
init: function() {
|
2011-08-10 16:36:31 +02:00
|
|
|
this._super.apply(this, arguments);
|
|
|
|
|
|
|
|
this.div = $j(document.createElement("div"))
|
2011-08-19 18:00:44 +02:00
|
|
|
.addClass("et2_" + this._type)
|
2011-08-16 18:46:22 +02:00
|
|
|
.addClass("et2_box_widget");
|
2011-08-10 16:36:31 +02:00
|
|
|
|
|
|
|
this.setDOMNode(this.div[0]);
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
2011-08-16 18:46:22 +02:00
|
|
|
et2_register_widget(et2_box, ["vbox", "box"]);
|
2011-08-10 16:36:31 +02:00
|
|
|
|