diff options
author | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2006-12-28 11:56:34 +0000 |
---|---|---|
committer | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2006-12-28 11:56:34 +0000 |
commit | 38a976b5a14d0cf87008c0fce0499e1e5fae8ca9 (patch) | |
tree | 4a9a99bb86591d91935c7d502f75d08c414f44eb /WebContent | |
parent | fbd588f3db9dccc62c45eabdf06d3e3aa10bb940 (diff) | |
download | vaadin-framework-38a976b5a14d0cf87008c0fce0499e1e5fae8ca9.tar.gz vaadin-framework-38a976b5a14d0cf87008c0fce0499e1e5fae8ca9.zip |
theme.root ends in "/". Thus we should not catenate any more "/":s in the end (as // does not work in jetty (and maybe other containers))
fixes bug #132
svn changeset:174/svn branch:toolkit
Diffstat (limited to 'WebContent')
-rw-r--r-- | WebContent/themes/default/theme.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/WebContent/themes/default/theme.js b/WebContent/themes/default/theme.js index e50718c52a..5cbae2760d 100644 --- a/WebContent/themes/default/theme.js +++ b/WebContent/themes/default/theme.js @@ -617,7 +617,7 @@ DefaultTheme.prototype.renderDefaultComponentHeader = function(renderer, uidl, t var errorIcon;
if (error) {
var icon = this.createElementTo(caption,"img","icon");
- icon.src = theme.root+"/img/icon/error-mini.gif";
+ icon.src = theme.root+"img/icon/error-mini.gif";
if (iconUrl) {
/* overlay icon */
this.setCSSClass(icon,"overlay");
@@ -627,7 +627,7 @@ DefaultTheme.prototype.renderDefaultComponentHeader = function(renderer, uidl, t errorIcon = icon;
} else if (description) {
var icon = this.createElementTo(caption,"img","icon");
- icon.src = theme.root+"/img/icon/info-mini.gif";
+ icon.src = theme.root+"img/icon/info-mini.gif";
if (iconUrl) {
/* overlay icon */
this.setCSSClass(icon,"overlay");
@@ -2446,7 +2446,7 @@ DefaultTheme.prototype.renderPagingTable = function(renderer,uidl,target,layoutI if (visibleCols) {
var iconDiv = theme.createElementTo(td,"div");
var icon = theme.createElementTo(iconDiv,"img","icon");
- icon.src = theme.root+"/img/table/colsel.gif";
+ icon.src = theme.root+"img/table/colsel.gif";
var popup = theme.createElementTo(td,"div","outset popup hide");
var inner = theme.createElementTo(popup,"div","border");
// empty row to allow closing:
@@ -2462,7 +2462,7 @@ DefaultTheme.prototype.renderPagingTable = function(renderer,uidl,target,layoutI var row = theme.createElementTo(inner,"div","item clickable pad border");
var collapsed = "true"==cols[i].getAttribute("collapsed");
icon = theme.createElementTo(row,"img","icon");
- icon.src = theme.root+"/img/table/"+(collapsed?"off.gif":"on.gif");
+ icon.src = theme.root+"img/table/"+(collapsed?"off.gif":"on.gif");
theme.createTextNodeTo(row,cols[i].getAttribute("caption"));
theme.addToggleClassListener(theme,client,row,"mouseover","over");
@@ -2659,7 +2659,7 @@ DefaultTheme.prototype.renderScrollTable = function(renderer,uidl,target,layoutI var row = theme.createElementTo(popup,"div","item clickable pad border");
var collapsed = "true"==cols[i].getAttribute("collapsed");
icon = theme.createElementTo(row,"img","icon");
- icon.src = theme.root+"/img/table/"+(collapsed?"off.gif":"on.gif");
+ icon.src = theme.root+"img/table/"+(collapsed?"off.gif":"on.gif");
theme.createTextNodeTo(row,cols[i].getAttribute("caption"));
theme.addAddClassListener(theme,client,row,"mouseover","over");
theme.addRemoveClassListener(theme,client,row,"mouseout","over");
@@ -2689,7 +2689,7 @@ DefaultTheme.prototype.renderScrollTable = function(renderer,uidl,target,layoutI if (colWidths["heh"]) {
html += "width:"+colWidths["heh"]+"px;";
}
- html += "overflow:hidden;height:100%;white-space:nowrap;\"><IMG id=\""+pid+"hah\" align=\"right\" src=\""+theme.root+"/img/table/handle.gif\" border=\"0\"></DIV></TD>";
+ html += "overflow:hidden;height:100%;white-space:nowrap;\"><IMG id=\""+pid+"hah\" align=\"right\" src=\""+theme.root+"img/table/handle.gif\" border=\"0\"></DIV></TD>";
}
var chs = theme.getFirstElement(uidl, "cols").getElementsByTagName("ch");
var len = chs.length;
@@ -2729,7 +2729,7 @@ DefaultTheme.prototype.renderScrollTable = function(renderer,uidl,target,layoutI if (colWidths[cid]) {
html += "width:"+colWidths[cid]+"px;";
}
- html += "overflow:hidden;height:100%;white-space:nowrap;\"><IMG id=\""+pid+"ha"+cid+"\" align=\"right\" src=\""+theme.root+"/img/table/handle.gif\" border=\"0\">";
+ html += "overflow:hidden;height:100%;white-space:nowrap;\"><IMG id=\""+pid+"ha"+cid+"\" align=\"right\" src=\""+theme.root+"img/table/handle.gif\" border=\"0\">";
html += (iconUrl?"<IMG src=\""+iconUrl+"\" class=\"icon\">":"")+cap+(sortkey==cid?"<IMG align=right class=\"sort sort"+(sortasc?"asc":"desc")+"\"/>":"")+"</DIV></TD>";
}
html += "</TR></TBODY></TABLE>";
|