Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from rperello/master
Browse files Browse the repository at this point in the history
Add an space before placeholder attribute writing as other attributes do...
  • Loading branch information
christianbundy committed Feb 24, 2014
2 parents 5dda31b + 357f07e commit 380eb23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/jsonform.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ var inputFieldTemplate = function (type) {
'<%= (node.readOnly ? " readonly=\'readonly\'" : "") %>' +
'<%= (node.schemaElement && node.schemaElement.maxLength ? " maxlength=\'" + node.schemaElement.maxLength + "\'" : "") %>' +
'<%= (node.schemaElement && node.schemaElement.required && (node.schemaElement.type !== "boolean") ? " required=\'required\'" : "") %>' +
'<%= (node.placeholder? "placeholder=" + \'"\' + escape(node.placeholder) + \'"\' : "")%>' +
'<%= (node.placeholder? " placeholder=" + \'"\' + escape(node.placeholder) + \'"\' : "")%>' +
' />',
'fieldtemplate': true,
'inputfield': true
Expand Down Expand Up @@ -330,7 +330,7 @@ jsonform.elementTypes = {
'<%= (node.readOnly ? " readonly=\'readonly\'" : "") %>' +
'<%= (node.schemaElement && node.schemaElement.maxLength ? " maxlength=\'" + node.schemaElement.maxLength + "\'" : "") %>' +
'<%= (node.schemaElement && node.schemaElement.required ? " required=\'required\'" : "") %>' +
'<%= (node.placeholder? "placeholder=" + \'"\' + escape(node.placeholder) + \'"\' : "")%>' +
'<%= (node.placeholder? " placeholder=" + \'"\' + escape(node.placeholder) + \'"\' : "")%>' +
'><%= value %></textarea>',
'fieldtemplate': true,
'inputfield': true
Expand All @@ -341,7 +341,7 @@ jsonform.elementTypes = {
'<%= (node.readOnly ? " readonly=\'readonly\'" : "") %>' +
'<%= (node.schemaElement && node.schemaElement.maxLength ? " maxlength=\'" + node.schemaElement.maxLength + "\'" : "") %>' +
'<%= (node.schemaElement && node.schemaElement.required ? " required=\'required\'" : "") %>' +
'<%= (node.placeholder? "placeholder=" + \'"\' + escape(node.placeholder) + \'"\' : "")%>' +
'<%= (node.placeholder? " placeholder=" + \'"\' + escape(node.placeholder) + \'"\' : "")%>' +
'><%= value %></textarea>',
'fieldtemplate': true,
'inputfield': true,
Expand Down

0 comments on commit 380eb23

Please sign in to comment.