You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2009/09/08 12:34:56 UTC
svn commit: r812445 -
/myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js
Author: bommel
Date: Tue Sep 8 10:34:56 2009
New Revision: 812445
URL: http://svn.apache.org/viewvc?rev=812445&view=rev
Log:
(TOBAGO-792) SimpleSheet should store scroll position
Modified:
myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js
Modified: myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js?rev=812445&r1=812444&r2=812445&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js Tue Sep 8 10:34:56 2009
@@ -67,12 +67,12 @@
this.headerDivId = this.id + "_header_div";
this.contentDivId = this.id + "_data_div";
this.selectedId = this.id + Tobago.SUB_COMPONENT_SEP +"selected";
- this.headerWidthsId = this.id + Tobago.SUB_COMPONENT_SEP + "widths"
+ this.headerWidthsId = this.id + Tobago.SUB_COMPONENT_SEP + "widths";
this.scrollPositionId = this.id + Tobago.SUB_COMPONENT_SEP + "scrollPosition";
if (this.ajaxEnabled) {
Tobago.ajaxComponents[this.id] = this;
- // option are onyl used for ajax request
+ // option are only used for ajax request
this.options = {
method: 'post',
asynchronous: true,
@@ -340,7 +340,7 @@
Tobago.addBindEventListener(headerDiv, "mousemove", this, "doResize");
Tobago.addBindEventListener(headerDiv, "mouseup", this, "endResize");
}
- var contentDiv = Tobago.element(this.contentDivId)
+ var contentDiv = Tobago.element(this.contentDivId);
Tobago.addBindEventListener(contentDiv, "scroll", this, "doScroll");
var resizer = Tobago.element(this.id + "_header_resizer_" + i++ );
while (resizer) {
@@ -372,9 +372,8 @@
this.setupElements();
-
+ this.setupResizer();
if (!this.simpleSheet) {
- this.setupResizer();
this.adjustHeaderDiv();
this.adjustResizer();
this.setupHeader();
@@ -421,7 +420,7 @@
}
}
}
-}
+};
Tobago.Sheet.prototype.initReload = function() {
if (typeof this.autoReload == "number" && Tobago.element(this.contentDivId)) {
@@ -464,7 +463,7 @@
if (this.dblClickActionId) {
Tobago.addBindEventListener(row, "dblclick", this, "doDblClick");
}
- row = this.getSiblingRow(row, ++i)
+ row = this.getSiblingRow(row, ++i);
}
//LOG.debug("preSelected rows = " + Tobago.element(sheetId + "::selected").value);
}
@@ -520,7 +519,7 @@
var action = this.id + ":" + rowIndex + ":" + this.clickActionId;
//LOG.debug("Action " + action);
if (this.clickReloadComponentId && this.clickReloadComponentId.length > 0) {
- Tobago.reloadComponent2(srcElement, this.clickReloadComponentId[0], action, null)
+ Tobago.reloadComponent2(srcElement, this.clickReloadComponentId[0], action, null);
} else {
Tobago.submitAction2(srcElement, action, true, null);
}
@@ -560,7 +559,7 @@
var action = this.id + ":" + rowIndex + ":" + this.dblClickActionId;
//LOG.debug("dblAction " + action);
if (this.dblClickReloadComponentId && this.dblClickReloadComponentId.length > 0) {
- Tobago.reloadComponent2(srcElement, this.dblClickReloadComponentId[0], action, null)
+ Tobago.reloadComponent2(srcElement, this.dblClickReloadComponentId[0], action, null);
} else {
Tobago.submitAction2(srcElement, action, true, null);
}