forked from kevinchappell/formBuilder
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kevinchappell#134 from kevinchappell/hotfix/subtypes
Bugfix: subtypes not rendering
- Loading branch information
Showing
22 changed files
with
38 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "formBuilder", | ||
"version": "1.9.25", | ||
"version": "1.9.26", | ||
"main": [ | ||
"dist/*" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
formBuilder - http://kevinchappell.github.io/formBuilder/ | ||
Version: 1.9.25 | ||
Version: 1.9.26 | ||
Author: Kevin Chappell <[email protected]> | ||
*/ | ||
@charset "UTF-8"; | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
formBuilder - http://kevinchappell.github.io/formBuilder/ | ||
Version: 1.9.25 | ||
Version: 1.9.26 | ||
Author: Kevin Chappell <[email protected]> | ||
*/ | ||
* { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
formBuilder - http://kevinchappell.github.io/formBuilder/ | ||
Version: 1.9.25 | ||
Version: 1.9.26 | ||
Author: Kevin Chappell <[email protected]> | ||
*/ | ||
'use strict'; | ||
|
@@ -1784,7 +1784,7 @@ function formBuilderEventsFn() { | |
|
||
advFields.push(fieldDescription(values)); | ||
|
||
advFields.push(subTypeField(values.type)); | ||
advFields.push(subTypeField(values)); | ||
|
||
advFields.push(btnStyles(values.style, values.type)); | ||
|
||
|
@@ -1851,11 +1851,13 @@ function formBuilderEventsFn() { | |
|
||
/** | ||
* Changes a fields type | ||
* @param {String} type | ||
* | ||
* @param {Object} values | ||
* @return {String} markup for type <select> input | ||
*/ | ||
var subTypeField = function subTypeField(type) { | ||
var subTypeField = function subTypeField(values) { | ||
var subTypes = opts.messages.subtypes, | ||
type = values.subtype || values.type, | ||
subType = ''; | ||
|
||
if (subTypes[type]) { | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
formBuilder - http://kevinchappell.github.io/formBuilder/ | ||
Version: 1.9.25 | ||
Version: 1.9.26 | ||
Author: Kevin Chappell <[email protected]> | ||
*/ | ||
'use strict'; | ||
|
Oops, something went wrong.