Patch by Yasu Saku (user:skys).
git-svn-id: https://svn.redmine.org/redmine/trunk@23192
e93f8b46-1217-0410-a6f0-
8f06a7374b81
return button;
}
-function jsSpace(id) {
- this.id = id || null;
+function jsSpace(className) {
+ this.className = className || null;
this.width = null;
}
jsSpace.prototype.draw = function() {
var span = document.createElement('span');
- if (this.id) span.id = this.id;
span.appendChild(document.createTextNode(String.fromCharCode(160)));
- span.className = 'jstSpacer';
+ span.className = 'jstSpacer' + (this.className ? ' ' + this.className : '');
if (this.width) span.style.marginRight = this.width+'px';
return span;