You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/11/26 20:56:36 UTC
svn commit: r1039537 - in /myfaces/tobago/trunk/tobago-theme:
tobago-theme-scarborough/
tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/
tobago-theme-speyside/ tobago-theme-standard/ toba...
Author: lofwyr
Date: Fri Nov 26 19:56:35 2010
New Revision: 1039537
URL: http://svn.apache.org/viewvc?rev=1039537&view=rev
Log:
TOBAGO-943: Consolidation of the Tobago JavaScript files and css files
- define "@DEV_ONLY" als maker for code which will be removed for the production-version (is better than the ";;;" for IDE code style and auto-layout)
Modified:
myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/pom.xml
myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-sheet.js
myfaces/tobago/trunk/tobago-theme/tobago-theme-speyside/pom.xml
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/pom.xml
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/calendar.js
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-tabgroup.js
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/pom.xml?rev=1039537&r1=1039536&r2=1039537&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/pom.xml (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/pom.xml Fri Nov 26 19:56:35 2010
@@ -56,7 +56,7 @@
dir="${basedir}/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script"
files="tobago-sheet.js"/>
</concat>
- <replaceregexp match="^;;;.*$" replace="" byline="true">
+ <replaceregexp match="^.*//.*@DEV_ONLY.*$" replace="" byline="true">
<fileset dir="${project.build.directory}/javascript-min">
<include name="**/tobago.min.js"/>
</fileset>
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-sheet.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-sheet.js?rev=1039537&r1=1039536&r2=1039537&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-sheet.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-sheet.js Fri Nov 26 19:56:35 2010
@@ -30,13 +30,13 @@ function tobagoSheetEditPagingRow(span,
var text = Tobago.element(commandId + Tobago.SUB_COMPONENT_SEP + "text");
if (text) {
-;;; LOG.debug("text gefunden");
+ LOG.debug("text gefunden"); // @DEV_ONLY
span = text.parentNode;
var hiddenId = commandId + Tobago.SUB_COMPONENT_SEP + "value";
span.style.cursor = 'auto';
input = text.inputElement;
if (! input) {
-;;; LOG.debug("creating new input");
+ LOG.debug("creating new input"); // @DEV_ONLY
input = document.createElement('input');
text.inputElement = input;
input.textElement = text;
@@ -54,7 +54,7 @@ function tobagoSheetEditPagingRow(span,
input.focus();
input.select();
} else {
-;;; LOG.debug("Can't find start field! ");
+ LOG.debug("Can't find start field! "); // @DEV_ONLY
}
}
@@ -64,7 +64,7 @@ function delayedHideInput(event) {
if (input) {
setTimeout('hideInput("' + input.id + '", 100)');
} else {
-;;; LOG.debug("Can't find input field! ");
+ LOG.debug("Can't find input field! "); // @DEV_ONLY
}
}
function hideInput(inputId) {
@@ -73,7 +73,7 @@ function hideInput(inputId) {
input.parentNode.style.cursor = 'pointer';
input.parentNode.replaceChild(input.textElement, input);
} else {
-;;; LOG.debug("Can't find input field! " + inputId);
+ LOG.debug("Can't find input field! " + inputId); // @DEV_ONLY
}
}
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-speyside/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-speyside/pom.xml?rev=1039537&r1=1039536&r2=1039537&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-speyside/pom.xml (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-speyside/pom.xml Fri Nov 26 19:56:35 2010
@@ -160,7 +160,7 @@
dir="${basedir}/src/main/resources/org/apache/myfaces/tobago/renderkit/html/speyside/standard/script"
files="theme-config.js"/>
</concat>
- <replaceregexp match="^;;;.*$" replace="" byline="true">
+ <replaceregexp match="^.*//.*@DEV_ONLY.*$" replace="" byline="true">
<fileset dir="${project.build.directory}/javascript-min">
<include name="**/tobago.min.js"/>
</fileset>
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/pom.xml?rev=1039537&r1=1039536&r2=1039537&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/pom.xml (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/pom.xml Fri Nov 26 19:56:35 2010
@@ -70,7 +70,7 @@
dir="${basedir}/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/msie_6_0/script"
files="tobago.js"/>
</concat>
- <replaceregexp match="^;;;.*$" replace="" byline="true">
+ <replaceregexp match="^.*//.*@DEV_ONLY.*$" replace="" byline="true">
<fileset dir="${project.build.directory}/javascript-min">
<include name="**/tobago.min.js"/>
</fileset>
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/calendar.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/calendar.js?rev=1039537&r1=1039536&r2=1039537&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/calendar.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/calendar.js Fri Nov 26 19:56:35 2010
@@ -397,7 +397,7 @@ function tbgInitTimeParse(timeId, dateId
var minutes = date.getMinutes();
var seconds = date.getSeconds();
-;;; LOG.debug("init time :" + hours + ":" + minutes + ":" + seconds);
+ LOG.debug("init time :" + hours + ":" + minutes + ":" + seconds); // @DEV_ONLY
tbgInitTimeData(timeId, hours, minutes, seconds);
}
}
Modified: myfaces/tobago/trunk/tobago-theme/tobago-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/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js?rev=1039537&r1=1039536&r2=1039537&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js Fri Nov 26 19:56:35 2010
@@ -30,7 +30,7 @@ Tobago.Sheets = {
// Info: 2nd parameter "enableAjax" was rededicated to "firstRowIndex"
Tobago.Sheet = function(sheetId, firstRowIndex, checkedImage, uncheckedImage, selectable, columnSelectorIndex, autoReload,
clickActionId, clickReloadComponentId, dblClickActionId, dblClickReloadComponentId, renderedPartially) {
-;;; this.startTime = new Date();
+ this.startTime = new Date(); // @DEV_ONLY
this.id = sheetId;
Tobago.Sheets.put(this);
this.checkedImage = checkedImage;
@@ -79,10 +79,10 @@ Tobago.Sheet = function(sheetId, firstRo
this.setup();
-;;; LOG.debug("New Sheet with id " + this.id);
-;;; this.endTime = new Date();
-;;; LOG.debug("Sheet-setup time = " + (this.setupEnd.getTime() - this.setupStart.getTime()));
-;;; LOG.debug("Sheet-total time = " + (this.endTime.getTime() - this.startTime.getTime()));
+ LOG.debug("New Sheet with id " + this.id); // @DEV_ONLY
+ this.endTime = new Date(); // @DEV_ONLY
+ LOG.debug("Sheet-setup time = " + (this.setupEnd.getTime() - this.setupStart.getTime())); // @DEV_ONLY
+ LOG.debug("Sheet-total time = " + (this.endTime.getTime() - this.startTime.getTime())); // @DEV_ONLY
};
Tobago.Sheet.prototype.sortOnclickRegExp
@@ -173,8 +173,8 @@ Tobago.Sheet.prototype.doSort = function
while (element && !element.sorterId) {
element = element.parentNode;
}
-;;; LOG.debug("element.id = " + element.id);
-;;; LOG.debug("sorterId = " + element.sorterId);
+ LOG.debug("element.id = " + element.id); // @DEV_ONLY
+ LOG.debug("sorterId = " + element.sorterId); // @DEV_ONLY
this.reloadWithAction(event.srcElement, element.sorterId);
};
@@ -209,7 +209,7 @@ Tobago.Sheet.prototype.doPaging = functi
};
Tobago.Sheet.prototype.reloadWithAction = function(source, action, options) {
-;;; LOG.debug("reload sheet with action \"" + action + "\"");
+ LOG.debug("reload sheet with action \"" + action + "\""); // @DEV_ONLY
var reloadOptions = Tobago.extend({}, this.options);
reloadOptions = Tobago.extend(reloadOptions, options);
Tobago.createOverlay(Tobago.element(this.id));
@@ -256,7 +256,7 @@ Tobago.Sheet.prototype.insertTarget = fu
input.select();
}
else {
-;;; LOG.error("Can't find text field with id = \"" + textId + "\"!");
+ LOG.error("Can't find text field with id = \"" + textId + "\"!"); // @DEV_ONLY
}
};
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-tabgroup.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-tabgroup.js?rev=1039537&r1=1039536&r2=1039537&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-tabgroup.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-tabgroup.js Fri Nov 26 19:56:35 2010
@@ -22,7 +22,7 @@ Tobago.TabGroup = function(tabGroupId, a
this.size = size;
this.activeTabId = tabGroupId + Tobago.SUB_COMPONENT_SEP2 + activeIndex;
this.renderedPartially = renderedPartially;
-;;; LOG.debug("activeTabId : " + this.activeTabId);
+ LOG.debug("activeTabId : " + this.activeTabId); // @DEV_ONLY
Tobago.element(this.tabGroupId).jsObject = this;
Tobago.addJsObject(this);
@@ -41,16 +41,16 @@ Tobago.TabGroup = function(tabGroupId, a
this.options = {
};
-;;; LOG.debug("onComplete = " + this.options.onComplete);
+ LOG.debug("onComplete = " + this.options.onComplete); // @DEV_ONLY
this.setUp();
Tobago.addAjaxComponent(this.tabGroupId, this);
};
Tobago.TabGroup.prototype.setUp = function() {
-;;; LOG.debug("tabgroup id " + this.tabGroupId);
-;;; LOG.debug("setup tabgroup " + this.activeTabId);
-;;; LOG.debug("activeIndex " + this.activeIndex);
+ LOG.debug("tabgroup id " + this.tabGroupId); // @DEV_ONLY
+ LOG.debug("setup tabgroup " + this.activeTabId); // @DEV_ONLY
+ LOG.debug("activeIndex " + this.activeIndex); // @DEV_ONLY
var i = 0;
var idPrefix = this.activeTabId + Tobago.SUB_COMPONENT_SEP2;
@@ -59,7 +59,7 @@ Tobago.TabGroup.prototype.setUp = functi
var anchor = Tobago.element(idPrefix + i);
if (anchor) {
-;;; LOG.debug("observe tab " + anchor.id);
+ LOG.debug("observe tab " + anchor.id); // @DEV_ONLY
// if (i != this.activeIndex) {
// Event.observe(anchor, "click", this.reload.bindAsEventListener(this));
// }
@@ -98,7 +98,7 @@ Tobago.TabGroup.prototype.setUp = functi
};
Tobago.TabGroup.prototype.next = function(event) {
-;;; LOG.debug("Reload ");
+ LOG.debug("Reload "); // @DEV_ONLY
if (event) {
var element = Tobago.element(event);
if (!element.id) {
@@ -125,8 +125,8 @@ Tobago.TabGroup.prototype.next = functio
hidden.value = this.activeIndex;
}
else {
-;;; LOG.warn("No hidden field for tabindex Id='" + this.tabGroupId + Tobago.SUB_COMPONENT_SEP2 + "activeIndex" + "'");
-;;; LOG.warn("aId = " + aId);
+ LOG.warn("No hidden field for tabindex Id='" + this.tabGroupId + Tobago.SUB_COMPONENT_SEP2 + "activeIndex" + "'"); // @DEV_ONLY
+ LOG.warn("aId = " + aId); // @DEV_ONLY
}
if (Tobago.Transport.hasTransport()) {
var id = idPrefix + this.activeIndex;
@@ -138,13 +138,13 @@ Tobago.TabGroup.prototype.next = functio
}
}
} else {
-;;; LOG.info("No reload Event");
+ LOG.info("No reload Event"); // @DEV_ONLY
}
};
Tobago.TabGroup.prototype.previous = function(event) {
-;;; LOG.debug("Reload ");
+ LOG.debug("Reload "); // @DEV_ONLY
if (event) {
var element = Tobago.element(event);
if (!element.id) {
@@ -171,8 +171,8 @@ Tobago.TabGroup.prototype.previous = fun
hidden.value = this.activeIndex;
}
else {
-;;; LOG.warn("No hidden field for tabindex Id='" + this.tabGroupId + Tobago.SUB_COMPONENT_SEP2 + "activeIndex" + "'");
-;;; LOG.warn("aId = " + aId);
+ LOG.warn("No hidden field for tabindex Id='" + this.tabGroupId + Tobago.SUB_COMPONENT_SEP2 + "activeIndex" + "'"); // @DEV_ONLY
+ LOG.warn("aId = " + aId); // @DEV_ONLY
}
if (Tobago.Transport.hasTransport()) {
var id = idPrefix + this.activeIndex;
@@ -184,7 +184,7 @@ Tobago.TabGroup.prototype.previous = fun
}
}
} else {
-;;; LOG.info("No reload Event");
+ LOG.info("No reload Event"); // @DEV_ONLY
}
};
@@ -194,7 +194,7 @@ Tobago.TabGroup.prototype.prepareReload
};
Tobago.TabGroup.prototype.reloadWithAction = function(event) {
-;;; LOG.debug("Reload ");
+ LOG.debug("Reload "); // @DEV_ONLY
if (event) {
var element = Tobago.element(event);
if (!element.id) {
@@ -204,15 +204,15 @@ Tobago.TabGroup.prototype.reloadWithActi
if (element.className && element.className.indexOf("tobago-tab-link") != -1) {
var aId = Tobago.findAnchestorWithTagName(element, 'span').id;
this.activeIndex = aId.substring(aId.lastIndexOf(Tobago.SUB_COMPONENT_SEP2) + Tobago.SUB_COMPONENT_SEP2.length);
-;;; LOG.debug("Request tab with index " + this.activeIndex);
+ LOG.debug("Request tab with index " + this.activeIndex); // @DEV_ONLY
var hidden = Tobago.element(this.tabGroupId + Tobago.SUB_COMPONENT_SEP2 + "activeIndex");
if (hidden) {
hidden.value = this.activeIndex;
}
else {
-;;; LOG.warn("No hidden field for tabindex Id='" + this.tabGroupId + Tobago.SUB_COMPONENT_SEP2 + "activeIndex" + "'");
-;;; LOG.warn("aId = " + aId);
+ LOG.warn("No hidden field for tabindex Id='" + this.tabGroupId + Tobago.SUB_COMPONENT_SEP2 + "activeIndex" + "'"); // @DEV_ONLY
+ LOG.warn("aId = " + aId); // @DEV_ONLY
}
if (Tobago.Transport.hasTransport()) {
this.removeRelatedAcceleratorKeys(aId.substring(0, aId.lastIndexOf(Tobago.SUB_COMPONENT_SEP2) + Tobago.SUB_COMPONENT_SEP2.length));
@@ -223,7 +223,7 @@ Tobago.TabGroup.prototype.reloadWithActi
}
}
} else {
-;;; LOG.info("No reload Event");
+ LOG.info("No reload Event"); // @DEV_ONLY
}
};
@@ -241,7 +241,7 @@ Tobago.TabGroup.prototype.removeRelatedA
Tobago.TabGroup.prototype.afterDoUpdateSuccess = function() {
this.activeTabId = Tobago.element(this.tabGroupId).firstChild.id;
-;;; LOG.debug("activeTabId : " + this.activeTabId);
+ LOG.debug("activeTabId : " + this.activeTabId); // @DEV_ONLY
this.setUp();
};
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=1039537&r1=1039536&r2=1039537&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Fri Nov 26 19:56:35 2010
@@ -19,31 +19,31 @@ var TbgTimer = {
startTbgJs: new Date(),
log: function() {
-;;; var tbgjs = this.endTbgJs.getTime() - this.startTbgJs.getTime();
+ var tbgjs = this.endTbgJs.getTime() - this.startTbgJs.getTime(); // @DEV_ONLY
// var htmljs = this.endBody.getTime() - this.startHtml.getTime();
-;;; var bodyjs = this.endBody.getTime() - this.startBody.getTime();
-;;; var onloadjs = this.endOnload.getTime() - this.startOnload.getTime();
-;;; var bodyToOnload = this.startOnload.getTime() - this.endBody.getTime();
-;;; var totaljs = this.endTotal.getTime() - this.startTbgJs.getTime();
-;;; var appOnload = this.endAppOnload.getTime() - this.startAppOnload.getTime();
+ var bodyjs = this.endBody.getTime() - this.startBody.getTime(); // @DEV_ONLY
+ var onloadjs = this.endOnload.getTime() - this.startOnload.getTime(); // @DEV_ONLY
+ var bodyToOnload = this.startOnload.getTime() - this.endBody.getTime(); // @DEV_ONLY
+ var totaljs = this.endTotal.getTime() - this.startTbgJs.getTime(); // @DEV_ONLY
+ var appOnload = this.endAppOnload.getTime() - this.startAppOnload.getTime(); // @DEV_ONLY
// LOG.show();
-;;; if (TbgHeadStart) {
-;;; LOG.debug('startTbgJs-TbgHeadStart: ' + (this.startTbgJs.getTime() - TbgHeadStart.getTime()));
-;;; }
-;;; LOG.debug('startBody-startTbgJs: ' + (this.startBody.getTime() - this.startTbgJs.getTime()));
-;;; LOG.debug('startTbgJs:' + this.startTbgJs.getTime());
-;;; LOG.debug('startBody: ' + this.startBody.getTime());
-;;; LOG.debug('parse tobago.js ' + tbgjs);
+ if (TbgHeadStart) { // @DEV_ONLY
+ LOG.debug('startTbgJs-TbgHeadStart: ' + (this.startTbgJs.getTime() - TbgHeadStart.getTime())); // @DEV_ONLY
+ } // @DEV_ONLY
+ LOG.debug('startBody-startTbgJs: ' + (this.startBody.getTime() - this.startTbgJs.getTime())); // @DEV_ONLY
+ LOG.debug('startTbgJs:' + this.startTbgJs.getTime()); // @DEV_ONLY
+ LOG.debug('startBody: ' + this.startBody.getTime()); // @DEV_ONLY
+ LOG.debug('parse tobago.js ' + tbgjs); // @DEV_ONLY
// LOG.debug("parse htmltotal " + htmljs);
-;;; LOG.debug('parse body ' + bodyjs);
-;;; LOG.debug('between body and onload ' + bodyToOnload);
-;;; LOG.debug('execute onload ' + onloadjs);
-;;; LOG.debug('execute appOnload ' + appOnload);
-;;; LOG.debug('until appOnload ' + (this.startAppOnload.getTime() - this.startOnload.getTime()));
-;;; LOG.debug('until scriptLoaders ' + (this.startScriptLoaders.getTime() - this.startOnload.getTime()));
-;;; LOG.debug('time scriptLoaders ' + (this.endScriptLoaders.getTime() - this.startScriptLoaders.getTime()));
-;;; LOG.debug('until nach onload ' + (this.endOnload.getTime() - this.startTbgJs.getTime()));
-;;; LOG.debug('total ' + totaljs);
+ LOG.debug('parse body ' + bodyjs); // @DEV_ONLY
+ LOG.debug('between body and onload ' + bodyToOnload); // @DEV_ONLY
+ LOG.debug('execute onload ' + onloadjs); // @DEV_ONLY
+ LOG.debug('execute appOnload ' + appOnload); // @DEV_ONLY
+ LOG.debug('until appOnload ' + (this.startAppOnload.getTime() - this.startOnload.getTime())); // @DEV_ONLY
+ LOG.debug('until scriptLoaders ' + (this.startScriptLoaders.getTime() - this.startOnload.getTime())); // @DEV_ONLY
+ LOG.debug('time scriptLoaders ' + (this.endScriptLoaders.getTime() - this.startScriptLoaders.getTime())); // @DEV_ONLY
+ LOG.debug('until nach onload ' + (this.endOnload.getTime() - this.startTbgJs.getTime())); // @DEV_ONLY
+ LOG.debug('total ' + totaljs); // @DEV_ONLY
}
};
@@ -132,7 +132,7 @@ var Tobago = {
createHtmlId: function() {
var id = '__tbg_id_' + this.htmlIdIndex++;
-;;; LOG.debug('created id = ' + id);
+ LOG.debug('created id = ' + id); // @DEV_ONLY
return id;
},
@@ -150,7 +150,7 @@ var Tobago = {
set: function(keyAccelerator) {
var key = keyAccelerator.modifier + keyAccelerator.key;
if (this[key]) {
-;;; LOG.warn('Ignoring duplicate key: ' + keyAccelerator.modifier + '-' + keyAccelerator.key + ' with function: ' + keyAccelerator.func.valueOf());
+ LOG.warn('Ignoring duplicate key: ' + keyAccelerator.modifier + '-' + keyAccelerator.key + ' with function: ' + keyAccelerator.func.valueOf()); // @DEV_ONLY
} else {
// LOG.debug("add accelerator for " + keyAccelerator.modifier + "-" + keyAccelerator.key);
this[key] = keyAccelerator;
@@ -258,9 +258,9 @@ var Tobago = {
// new LOG.LogArea({hide: false});
// LOG.show();
-;;; if (TbgTimer.endBody) {
-;;; TbgTimer.startOnload = new Date();
-;;; }
+ if (TbgTimer.endBody) { // @DEV_ONLY
+ TbgTimer.startOnload = new Date(); // @DEV_ONLY
+ } // @DEV_ONLY
this.page = this.element(pageId);
this.form = this.element(this.page.id + this.SUB_COMPONENT_SEP + 'form');
this.addBindEventListener(this.form, 'submit', this, 'onSubmit');
@@ -274,15 +274,15 @@ var Tobago = {
// XXX not nice...
xxx_tobagoInit();
-;;; if (TbgTimer.endBody) {
-;;; TbgTimer.startAppOnload = new Date();
-;;; }
+ if (TbgTimer.endBody) { // @DEV_ONLY
+ TbgTimer.startAppOnload = new Date(); // @DEV_ONLY
+ } // @DEV_ONLY
if (this.applicationOnload) {
this.applicationOnload();
}
-;;; if (TbgTimer.endBody) {
-;;; TbgTimer.endAppOnload = new Date();
-;;; }
+ if (TbgTimer.endBody) { // @DEV_ONLY
+ TbgTimer.endAppOnload = new Date(); // @DEV_ONLY
+ } // @DEV_ONLY
this.addBindEventListener(document, 'keypress', this.acceleratorKeys, 'observe');
@@ -292,26 +292,26 @@ var Tobago = {
}
window.setTimeout(Tobago.finishPageLoading, 1);
-;;; if (TbgTimer.endBody) {
-;;; TbgTimer.endOnload = new Date();
-;;; }
+ if (TbgTimer.endBody) { // @DEV_ONLY
+ TbgTimer.endOnload = new Date(); // @DEV_ONLY
+ } // @DEV_ONLY
},
finishPageLoading: function() {
Tobago.registerCurrentScripts();
-;;; if (TbgTimer.endBody) {
-;;; TbgTimer.startScriptLoaders = new Date();
-;;; }
+ if (TbgTimer.endBody) { // @DEV_ONLY
+ TbgTimer.startScriptLoaders = new Date(); // @DEV_ONLY
+ } // @DEV_ONLY
Tobago.startScriptLoaders();
-;;; if (TbgTimer.endBody) {
-;;; TbgTimer.endScriptLoaders = new Date();
-;;; }
+ if (TbgTimer.endBody) { // @DEV_ONLY
+ TbgTimer.endScriptLoaders = new Date(); // @DEV_ONLY
+ } // @DEV_ONLY
Tobago.pageIsComplete = true;
Tobago.setFocus();
-;;; if (TbgTimer.endBody) {
-;;; TbgTimer.endTotal = new Date();
-;;; TbgTimer.log();
-;;; }
+ if (TbgTimer.endBody) { // @DEV_ONLY
+ TbgTimer.endTotal = new Date(); // @DEV_ONLY
+ TbgTimer.log(); // @DEV_ONLY
+ } // @DEV_ONLY
},
@@ -521,7 +521,7 @@ var Tobago = {
if (!this.isSubmit) {
this.isSubmit = true;
var req = Tobago.Transport.requests.shift(); // remove this from queue
-;;; LOG.debug('request removed: ' + req.toString());
+ LOG.debug('request removed: ' + req.toString()); // @DEV_ONLY
var oldAction = Tobago.action.value;
var oldTarget = Tobago.form.target;
Tobago.action.value = actionId;
@@ -608,7 +608,7 @@ var Tobago = {
if (stateContainer) {
stateContainer.innerHTML = state;
} else {
-;;; LOG.error("Can't find stateContainer!");
+ LOG.error("Can't find stateContainer!"); // @DEV_ONLY
}
},
@@ -642,7 +642,7 @@ var Tobago = {
* Register a script file to prevent multiple loadings via Ajax.
*/
registerScript: function(scriptId) {
-;;; LOG.debug('register: ' + scriptId);
+ LOG.debug('register: ' + scriptId); // @DEV_ONLY
this.registeredScripts[this.genScriptId(scriptId)] = true;
},
@@ -740,18 +740,18 @@ var Tobago = {
scriptLoader.executeCommands();
}
} else {
-;;; var start = new Date().getTime();
-;;; LOG.debug('start 1 of ' + this.scriptLoaders.length + ' Loaders');
-;;; if (this.tbgScLoSt) {
-;;; LOG.debug('time scriptLoader ' + (start - this.tbgScLoSt));
-;;; }
-;;; this.tbgScLoSt = start;
+ var start = new Date().getTime(); // @DEV_ONLY
+ LOG.debug('start 1 of ' + this.scriptLoaders.length + ' Loaders'); // @DEV_ONLY
+ if (this.tbgScLoSt) { // @DEV_ONLY
+ LOG.debug('time scriptLoader ' + (start - this.tbgScLoSt)); // @DEV_ONLY
+ } // @DEV_ONLY
+ this.tbgScLoSt = start; // @DEV_ONLY
if (this.scriptLoaders.length > 0) {
this.scriptLoadingActive = true;
this.scriptLoaders.shift().ensureScripts();
} else {
this.scriptLoadingActive = false;
-;;; LOG.debug('last time scriptLoader ' + (new Date().getTime() - this.tbgScLoSt));
+ LOG.debug('last time scriptLoader ' + (new Date().getTime() - this.tbgScLoSt)); // @DEV_ONLY
delete this.tbgScLoSt;
}
}
@@ -788,7 +788,7 @@ var Tobago = {
} else if (container === undefined) {
Tobago.Updater.update(source, actionId, id, options);
} else {
-;;; LOG.warn('Illegal Container for reload:' + (typeof container));
+ LOG.warn('Illegal Container for reload:' + (typeof container)); // @DEV_ONLY
}
},
@@ -986,7 +986,7 @@ var Tobago = {
*/
popupBlink: function(element) {
var id = jQuery(element).attr('id');
-;;; LOG.debug("Blink: Popup id is '" + id + "'");
+ LOG.debug("Blink: Popup id is '" + id + "'"); // @DEV_ONLY
Tobago.addCssClass(id, 'tobago-popup-blink');
setTimeout("Tobago.removeCssClass('" + id + "', 'tobago-popup-blink')", 20);
},
@@ -1131,7 +1131,7 @@ var Tobago = {
try { // focus() on not visible elements breaks IE
focusElement.focus();
} catch (ex) {
-;;; LOG.warn('Exception when setting focus on : \"' + this.focusId + '\"');
+ LOG.warn('Exception when setting focus on : \"' + this.focusId + '\"'); // @DEV_ONLY
}
} else if (typeof this.focusId == 'undefined') {
var lowestTabIndex = 32768; // HTML max tab index value + 1
@@ -1175,7 +1175,7 @@ var Tobago = {
}
}
} else if (this.focusId.length > 0) {
-;;; LOG.warn('Cannot find component to set focus : \"' + this.focusId + '\"');
+ LOG.warn('Cannot find component to set focus : \"' + this.focusId + '\"'); // @DEV_ONLY
}
},
@@ -1297,12 +1297,12 @@ var Tobago = {
createOverlay: function(element) {
element = Tobago.element(element);
if (!element) {
-;;; LOG.warn('no element to create overlay');
+ LOG.warn('no element to create overlay'); // @DEV_ONLY
return;
}
var position = Tobago.getRuntimeStyle(element).position;
if (position == 'static') {
-;;; LOG.debug('replace position ' + position + ' with relative');
+ LOG.debug('replace position ' + position + ' with relative'); // @DEV_ONLY
element.style.position = 'relative';
}
if (this.getBrowser().type == 'msie' && this.getBrowser().version < 7) {
@@ -1349,7 +1349,7 @@ var Tobago = {
element.removeChild(iframe);
}
} else {
-;;; LOG.warn("Can't find Overlay : \"" + element.id + '-overlay' + '\"');
+ LOG.warn("Can't find Overlay : \"" + element.id + '-overlay' + '\"'); // @DEV_ONLY
}
return element;
},
@@ -1391,7 +1391,7 @@ var Tobago = {
else if (element.detachEvent) { // IE
element.detachEvent('on' + event, myFunction);
} else {
-;;; LOG.debug('Unknown Element: ' + typeof element);
+ LOG.debug('Unknown Element: ' + typeof element); // @DEV_ONLY
}
},
@@ -1561,12 +1561,12 @@ var Tobago = {
// TODO check if this is still ok
doEditorCommand: function(element, id) {
-;;; LOG.debug('doEditorCommand()');
+ LOG.debug('doEditorCommand()'); // @DEV_ONLY
var ta = this.element(id);
var text = ta.value;
var marked = text.substring(ta.selectionStart, ta.selectionEnd);
-;;; LOG.debug('text = ' + marked);
-;;; LOG.debug('start = ' + ta.selectionStart + ' end =' + ta.selectionEnd);
+ LOG.debug('text = ' + marked); // @DEV_ONLY
+ LOG.debug('start = ' + ta.selectionStart + ' end =' + ta.selectionEnd); // @DEV_ONLY
ta.selectionStart--;
ta.focus();
},
@@ -1603,9 +1603,9 @@ var Tobago = {
} catch (ex) {
return undefined;
}
-;;; if (! (arg === undefined)) {
-;;; LOG.error('arg is unknown: ' + typeof arg + ' : ' + arg);
-;;; }
+ if (! (arg === undefined)) { // @DEV_ONLY
+ LOG.error('arg is unknown: ' + typeof arg + ' : ' + arg); // @DEV_ONLY
+ } // @DEV_ONLY
return undefined;
},
@@ -1709,7 +1709,7 @@ Tobago.Config = {
if (name) {
return this[name][key];
} else {
-;;; LOG.warn("Tobago.Config.get("+ name + ", " + key + ") = undefined" );
+ LOG.warn("Tobago.Config.get(" + name + ", " + key + ") = undefined"); // @DEV_ONLY
return 0;
}
},
@@ -1913,7 +1913,7 @@ Tobago.AcceleratorKey = function(func, k
});
Tobago.acceleratorKeys.set(this);
} else {
-;;; LOG.warn('Cannot observe key event for ' + modifier + '-' + key);
+ LOG.warn('Cannot observe key event for ' + modifier + '-' + key); // @DEV_ONLY
}
} else {
Tobago.acceleratorKeys.set(this);
@@ -1928,7 +1928,7 @@ Tobago.ScriptLoader = function(names, do
this.ensureScript = function(src) {
this.actualScript = src;
if (!Tobago.hasScript(this.actualScript)) {
-;;; LOG.debug('Load script ' + src);
+ LOG.debug('Load script ' + src); // @DEV_ONLY
this.scriptElement = document.createElement('script');
this.scriptElement.type = 'text/javascript';
this.scriptElement.src = src;
@@ -1942,7 +1942,7 @@ Tobago.ScriptLoader = function(names, do
var head = document.getElementsByTagName('head')[0];
head.appendChild(this.scriptElement);
} else {
-;;; LOG.debug('found script ' + src);
+ LOG.debug('found script ' + src); // @DEV_ONLY
this.ensureScripts();
}
@@ -2000,8 +2000,8 @@ Tobago.ScriptLoader = function(names, do
try {
eval(this.doAfter);
} catch (ex) {
-;;; LOG.error(ex);
-;;; LOG.error('errorCode: ' + this.doAfter.valueOf());
+ LOG.error(ex); // @DEV_ONLY
+ LOG.error('errorCode: ' + this.doAfter.valueOf()); // @DEV_ONLY
throw ex;
}
};
@@ -2044,9 +2044,9 @@ Tobago.Transport = {
index = this.requests.push(req);
//LOG.debug('index = ' + index)
} else if (!this.pageSubmited) { // AJAX case
-;;; LOG.debug('Current ActionId = ' + this.currentActionId + ' action= ' + actionId);
+ LOG.debug('Current ActionId = ' + this.currentActionId + ' action= ' + actionId); // @DEV_ONLY
if (actionId && this.currentActionId == actionId) {
-;;; LOG.debug('Ignoring request');
+ LOG.debug('Ignoring request'); // @DEV_ONLY
// If actionId equals currentActionId assume double request: do nothing
return false;
}
@@ -2058,11 +2058,11 @@ Tobago.Transport = {
}
//LOG.debug('index = ' + index)
if (index == 1) {
-;;; LOG.debug('Execute request!');
+ LOG.debug('Execute request!'); // @DEV_ONLY
this.startTime = new Date().getTime();
this.requests[0]();
} else {
-;;; LOG.debug('Request queued!');
+ LOG.debug('Request queued!'); // @DEV_ONLY
}
return true;
},
@@ -2070,9 +2070,9 @@ Tobago.Transport = {
requestComplete: function() {
this.requests.shift();
this.currentActionId = null;
-;;; LOG.debug('Request complete! Duration: ' + (new Date().getTime() - this.startTime) + 'ms; Queue size : ' + this.requests.length);
+ LOG.debug('Request complete! Duration: ' + (new Date().getTime() - this.startTime) + 'ms; Queue size : ' + this.requests.length); // @DEV_ONLY
if (this.requests.length > 0) {
-;;; LOG.debug('Execute request!');
+ LOG.debug('Execute request!'); // @DEV_ONLY
this.startTime = new Date().getTime();
this.requests[0]();
}
@@ -2118,7 +2118,7 @@ Tobago.Transport.JqueryTransport = {
requestObject.timeout = requestOptions.timeout;
requestObject.success = function(data, textStatus) {
-;;; LOG.debug('requestObject.success()');
+ LOG.debug('requestObject.success()'); // @DEV_ONLY
requestOptions.resultData = data;
requestOptions.textStatus = textStatus;
@@ -2126,7 +2126,7 @@ Tobago.Transport.JqueryTransport = {
};
requestObject.error = function(xhr, textStatus, errorThrown) {
-;;; LOG.debug('requestOptions.error() : ' + textStatus);
+ LOG.debug('requestOptions.error() : ' + textStatus); // @DEV_ONLY
requestOptions.xhr = xhr;
requestOptions.textStatus = textStatus;
Tobago.Updater.onError(requestOptions);
@@ -2159,7 +2159,7 @@ Tobago.Transport.DojoTransport = {
requestObject.timeout = requestOptions.timeout;
requestObject.load = function(data, ioArgs) {
-;;; LOG.debug('requestObject.success()');
+ LOG.debug('requestObject.success()'); // @DEV_ONLY
requestOptions.resultData = data;
requestOptions.xhr = ioArgs.xhr;
try {
@@ -2191,7 +2191,7 @@ Tobago.Transport.DojoTransport = {
},
error: function(data, ioArgs) {
-;;; LOG.error('Request failed : ' + ioArgs.xhr.status);
+ LOG.error('Request failed : ' + ioArgs.xhr.status); // @DEV_ONLY
requestOptions.xhr = ioArgs.xhr;
if (ioArgs.xhr.status == 304) {
requestOptions.textStatus = 'notmodified';
@@ -2274,7 +2274,7 @@ Tobago.Updater = {
update: function(source, actionId, ajaxComponentIds, options) {
// LOG.show();
-;;; LOG.debug('Updater.update(\"' + actionId + '\", \"' + ajaxComponentIds + '\")');
+ LOG.debug('Updater.update(\"' + actionId + '\", \"' + ajaxComponentIds + '\")'); // @DEV_ONLY
if (Tobago.Transport.hasTransport()) {
// LOG.info("hasTransport");
@@ -2327,14 +2327,14 @@ Tobago.Updater = {
var queued = Tobago.Transport.ajaxTransport.request(requestOptions);
if (!queued) {
-;;; LOG.error('error on update: not queued!');
+ LOG.error('error on update: not queued!'); // @DEV_ONLY
if (!ids) {
ids = Tobago.parsePartialIds(ajaxComponentIds);
}
this.doErrorUpdate(ids);
}
} else {
-;;; LOG.info('No Ajax transport found! Doing full page reload.');
+ LOG.info('No Ajax transport found! Doing full page reload.'); // @DEV_ONLY
Tobago.submitAction(source, actionId);
}
},
@@ -2351,14 +2351,14 @@ Tobago.Updater = {
},
showFailureMessage: function() {
-;;; LOG.info('Ajax request failed!');
+ LOG.info('Ajax request failed!'); // @DEV_ONLY
},
onSuccess: function(requestOptions) {
-;;; LOG.debug('Tobago.Updater.onSuccess()');
+ LOG.debug('Tobago.Updater.onSuccess()'); // @DEV_ONLY
if (!requestOptions.resultData || !requestOptions.resultData.tobagoAjaxResponse) {
// unknown response do full page reload
-;;; LOG.warn('initiating full reload');
+ LOG.warn('initiating full reload'); // @DEV_ONLY
if (Tobago.Updater.WAIT_ON_ERROR) {
alert('wait: initiating full reload');
}
@@ -2368,7 +2368,7 @@ Tobago.Updater = {
if (requestionObjects.resultData.jsfState) {
Tobago.replaceJsfState(requestOptions.resultData.jsfState);
}
-;;; LOG.info('full reload requested');
+ LOG.info('full reload requested'); // @DEV_ONLY
if (Tobago.Updater.WAIT_ON_RELOAD) {
alert('wait: full reload requeste: responseCode = ' + requestOptions.resultData.responseCode);
}
@@ -2379,9 +2379,9 @@ Tobago.Updater = {
var doneIds = {};
for (var partId in requestOptions.resultData) {
-;;; LOG.debug(partId + '= ' + requestOptions.resultData[partId]);
+ LOG.debug(partId + '= ' + requestOptions.resultData[partId]); // @DEV_ONLY
if (partId.indexOf('ajaxPart_') == 0) {
-;;; LOG.debug('doUpdate partId = ' + partId);
+ LOG.debug('doUpdate partId = ' + partId); // @DEV_ONLY
this.updateComponent(requestOptions.resultData[partId]);
doneIds[requestOptions.resultData[partId].ajaxId] = true;
}
@@ -2396,7 +2396,7 @@ Tobago.Updater = {
for (var i = 0; i < requestedIds.length; i++) {
var id = requestedIds[i];
if (! doneIds[id]) {
-;;; LOG.debug('handleMissingResponse id = ' + id);
+ LOG.debug('handleMissingResponse id = ' + id); // @DEV_ONLY
if (!data) {
data = {responseCode: Tobago.Updater.CODE_NOT_MODIFIED, html: 'error', script: function() {
}};
@@ -2410,7 +2410,7 @@ Tobago.Updater = {
handle304Response: function(ids) {
for (var i = 0; i < ids.length; i++) {
var id = ids[i];
-;;; LOG.debug('handle304Response id = ' + id);
+ LOG.debug('handle304Response id = ' + id); // @DEV_ONLY
var data = {
ajaxId: id,
responseCode: Tobago.Updater.CODE_NOT_MODIFIED,
@@ -2425,7 +2425,7 @@ Tobago.Updater = {
onError: function(requestObject) {
-;;; LOG.warn('Request failed : ' + requestObject.statusText);
+ LOG.warn('Request failed : ' + requestObject.statusText); // @DEV_ONLY
if (requestObject.statusText === 'timeout') {
Tobago.Updater.doErrorUpdate(Tobago.parsePartialIds(requestObject.ajaxComponentIds));
@@ -2438,9 +2438,9 @@ Tobago.Updater = {
updateComponent: function(componentData) {
var ajaxId = componentData.ajaxId;
-;;; LOG.debug('update Component = ' + ajaxId);
+ LOG.debug('update Component = ' + ajaxId); // @DEV_ONLY
if (componentData.responseCode == Tobago.Updater.CODE_RELOAD_REQUIRED) {
-;;; LOG.debug('nop do reload = ');
+ LOG.debug('nop do reload = '); // @DEV_ONLY
// nop
} else {
var container = Tobago.ajaxComponents[ajaxId];
@@ -2454,7 +2454,7 @@ Tobago.Updater = {
container.doUpdate(componentData);
} else {
-;;; LOG.info('no ajax container = ' + ajaxId);
+ LOG.info('no ajax container = ' + ajaxId); // @DEV_ONLY
// LOG.debugAjaxComponents();
Tobago.Updater.doUpdate(componentData);
}
@@ -2485,7 +2485,7 @@ Tobago.Updater = {
xxx_tobagoInit(newElement);
}
} catch (e) {
-;;; LOG.error('Error in doUpdate: ' + e);
+ LOG.error('Error in doUpdate: ' + e); // @DEV_ONLY
throw e;
}
break;
@@ -2499,11 +2499,11 @@ Tobago.Updater = {
if (typeof this.afterDoUpdateError == 'function') {
this.afterDoUpdateError();
}
-;;; LOG.warn("ERROR 500 when updating component id = '" + data.ajaxId + "'");
+ LOG.warn("ERROR 500 when updating component id = '" + data.ajaxId + "'"); // @DEV_ONLY
Tobago.deleteOverlay(Tobago.element(Tobago.ajaxComponents[data.ajaxId]));
break;
default:
-;;; LOG.error('Unknown response code: ' + data.responseCode + " for component id = '" + data.ajaxId + "'");
+ LOG.error('Unknown response code: ' + data.responseCode + " for component id = '" + data.ajaxId + "'"); // @DEV_ONLY
Tobago.deleteOverlay(Tobago.element(Tobago.ajaxComponents[data.ajaxId]));
break;
}
@@ -2576,7 +2576,7 @@ function xxx_tobagoInit(elements) {
// inputSuggest.js
Tobago.AutocompleterAjax = function(elementId, required, requiredClass, options) {
-;;; LOG.debug('new Tobago.AutocompleterAjax ' + elementId);
+ LOG.debug('new Tobago.AutocompleterAjax ' + elementId); // @DEV_ONLY
this.id = elementId;
this.required = required;
this.requiredClass = requiredClass;
@@ -2666,7 +2666,7 @@ Tobago.AutocompleterAjax.prototype.fetch
this.currentTimeout = undefined;
if (!this.requestActive) {
this.requestActive = true;
-;;; LOG.debug('fetchSuggestions() request Suggestions for ' + input.value);
+ LOG.debug('fetchSuggestions() request Suggestions for ' + input.value); // @DEV_ONLY
Tobago.Updater.update(input, input.id, input.id, this.options);
} else {
this.rerequest = true;
@@ -2678,7 +2678,7 @@ Tobago.AutocompleterAjax.prototype.befor
this.rerequest = false;
this.requestActive = true;
var input = Tobago.element(this.id);
-;;; LOG.debug('doUpdate() request Suggestions for ' + input.value);
+ LOG.debug('doUpdate() request Suggestions for ' + input.value); // @DEV_ONLY
Tobago.Updater.update(input, input.id, input.id, this.options);
return false;
} else {
@@ -2701,7 +2701,7 @@ Tobago.AutocompleterAjax.prototype.after
Tobago.AutocompleterAjax.prototype.suggest = function() {
if (this.suggestions == null) {
-;;; LOG.error('No suggestions object!');
+ LOG.error('No suggestions object!'); // @DEV_ONLY
return;
}
var div = Tobago.element(this.id + '_suggestDiv');
@@ -2778,7 +2778,7 @@ Tobago.AutocompleterAjax.prototype.selec
this.closeSuggest(false);
var suggestItem = a.sugggestItem;
-;;; LOG.debug('item.value : ' + suggestItem.value);
+ LOG.debug('item.value : ' + suggestItem.value); // @DEV_ONLY
var input = Tobago.element(this.id);
input.value = suggestItem.value;
@@ -2788,7 +2788,7 @@ Tobago.AutocompleterAjax.prototype.selec
if (suggestItem.values) {
for (var i = 0; i < suggestItem.values.length; i++) {
var item = suggestItem.values[i];
-;;; LOG.debug(item.id + ' = ' + item.value);
+ LOG.debug(item.id + ' = ' + item.value); // @DEV_ONLY
Tobago.element(item.id).value = item.value;
}
}
@@ -2796,7 +2796,7 @@ Tobago.AutocompleterAjax.prototype.selec
}
var nextFocusElement = input;
-;;; LOG.debug(' suggestItem.nextFocusId = ' + a.nextFocusId);
+ LOG.debug(' suggestItem.nextFocusId = ' + a.nextFocusId); // @DEV_ONLY
if (a.nextFocusId) {
var element = Tobago.element(a.nextFocusId);
if (element) {
@@ -2971,4 +2971,4 @@ function setPopupPara(width, height, opt
}
-;;; TbgTimer.endTbgJs = new Date();
+TbgTimer.endTbgJs = new Date(); // @DEV_ONLY