mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-24 23:08:53 +01:00
docu update and fix IDE warnings
This commit is contained in:
parent
1e726cedac
commit
50b34a7b99
@ -18,10 +18,11 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class which implements the hbox and vbox tag
|
||||
* Class which implements box and vbox tag
|
||||
*
|
||||
* @augments et2_baseWidget
|
||||
*/
|
||||
var et2_box = et2_baseWidget.extend([et2_IDetachedDOM],
|
||||
*/
|
||||
var et2_box = et2_baseWidget.extend([et2_IDetachedDOM],
|
||||
{
|
||||
attributes: {
|
||||
// Not needed
|
||||
@ -33,7 +34,7 @@ var et2_box = et2_baseWidget.extend([et2_IDetachedDOM],
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
*
|
||||
* @memberOf et2_box
|
||||
*/
|
||||
init: function() {
|
||||
@ -45,13 +46,15 @@ var et2_box = et2_baseWidget.extend([et2_IDetachedDOM],
|
||||
|
||||
this.setDOMNode(this.div[0]);
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Overriden so we can check for autorepeating children. We only check for
|
||||
* $ in the immediate children & grandchildren of this node.
|
||||
*
|
||||
* @param {object} _node
|
||||
*/
|
||||
loadFromXML: function(_node) {
|
||||
if(this._type != "box")
|
||||
if(this._type != "box")
|
||||
{
|
||||
return this._super.apply(this, arguments);
|
||||
}
|
||||
@ -89,7 +92,7 @@ var et2_box = et2_baseWidget.extend([et2_IDetachedDOM],
|
||||
repeatNode = node;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Only the last child repeats(?)
|
||||
if(repeatNode != null)
|
||||
{
|
||||
@ -108,19 +111,21 @@ var et2_box = et2_baseWidget.extend([et2_IDetachedDOM],
|
||||
|
||||
this.createElementFromNode(repeatNode);
|
||||
}
|
||||
|
||||
|
||||
// Reset
|
||||
for(var name in this.getArrayMgrs())
|
||||
{
|
||||
this.getArrayMgr(name).perspectiveData = currentPerspective;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Code for implementing et2_IDetachedDOM
|
||||
* This doesn't need to be implemented.
|
||||
* Individual widgets are detected and handled by the grid, but the interface is needed for this to happen
|
||||
*
|
||||
* @param {array} _attrs array to add further attributes to
|
||||
*/
|
||||
getDetachedAttributes: function(_attrs)
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* EGroupware eTemplate2 - JS Box object
|
||||
* EGroupware eTemplate2 - JS HBox object
|
||||
*
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @package etemplate
|
||||
@ -18,17 +18,17 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class which implements the hbox and vbox tag
|
||||
*
|
||||
* Class which implements hbox tag
|
||||
*
|
||||
* @augments et2_baseWidget
|
||||
*/
|
||||
*/
|
||||
var et2_hbox = et2_baseWidget.extend(
|
||||
{
|
||||
createNamespace: true,
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
*
|
||||
* @memberOf et2_hbox
|
||||
*/
|
||||
init: function() {
|
||||
@ -98,6 +98,8 @@ var et2_hbox = et2_baseWidget.extend(
|
||||
/**
|
||||
* The overwritten loadFromXML function checks whether any child element has
|
||||
* a special align value.
|
||||
*
|
||||
* @param {object} _node
|
||||
*/
|
||||
loadFromXML: function(_node) {
|
||||
// Check whether any child node has an alignment tag
|
||||
@ -172,6 +174,8 @@ var et2_hbox = et2_baseWidget.extend(
|
||||
|
||||
/**
|
||||
* Tables added to the root node need to be inline instead of blocks
|
||||
*
|
||||
* @param {et2_widget} child child-widget to add
|
||||
*/
|
||||
addChild: function(child) {
|
||||
this._super.apply(this, arguments);
|
||||
|
@ -76,6 +76,8 @@ var et2_url = et2_textbox.extend(
|
||||
|
||||
/**
|
||||
* Override parent to update href of 'button'
|
||||
*
|
||||
* @param _value value to set
|
||||
*/
|
||||
set_value: function(_value) {
|
||||
this.update_button(_value);
|
||||
@ -292,8 +294,9 @@ var et2_url_ro = et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
|
||||
/**
|
||||
* Code for implementing et2_IDetachedDOM
|
||||
*
|
||||
* @param {array} _attrs array to add further attributes to
|
||||
*/
|
||||
|
||||
getDetachedAttributes: function(_attrs)
|
||||
{
|
||||
_attrs.push("value", "class");
|
||||
|
Loading…
Reference in New Issue
Block a user