1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-19 00:04:51 +00:00

Fix problem with edit-text widget gaining class="undefined"

Fixes #269
This commit is contained in:
Jermolene 2013-12-12 18:52:51 +00:00
parent 3f3cac12ba
commit fd996bad20

View File

@ -45,7 +45,9 @@ EditTextWidget.prototype.render = function(parent,nextSibling) {
domNode.setAttribute("placeholder",this.editPlaceholder); domNode.setAttribute("placeholder",this.editPlaceholder);
} }
// Assign classes // Assign classes
domNode.className = this.editClass; if(this.editClass) {
domNode.className = this.editClass;
}
// Set the text // Set the text
var editInfo = this.getEditInfo(); var editInfo = this.getEditInfo();
if(this.editTag === "textarea") { if(this.editTag === "textarea") {