mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-29 04:01:11 +00:00
Fixes duplicate spacer id in jsToolBar (#38915).
Patch by Yasu Saku (user:skys). git-svn-id: https://svn.redmine.org/redmine/trunk@23192 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1799ee49ce
commit
0e877c081f
@ -140,15 +140,14 @@ jsButton.prototype.draw = function() {
|
|||||||
return button;
|
return button;
|
||||||
}
|
}
|
||||||
|
|
||||||
function jsSpace(id) {
|
function jsSpace(className) {
|
||||||
this.id = id || null;
|
this.className = className || null;
|
||||||
this.width = null;
|
this.width = null;
|
||||||
}
|
}
|
||||||
jsSpace.prototype.draw = function() {
|
jsSpace.prototype.draw = function() {
|
||||||
var span = document.createElement('span');
|
var span = document.createElement('span');
|
||||||
if (this.id) span.id = this.id;
|
|
||||||
span.appendChild(document.createTextNode(String.fromCharCode(160)));
|
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';
|
if (this.width) span.style.marginRight = this.width+'px';
|
||||||
|
|
||||||
return span;
|
return span;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user