Skip to content

Commit

Permalink
Merge pull request kevinchappell#134 from kevinchappell/hotfix/subtypes
Browse files Browse the repository at this point in the history
Bugfix: subtypes not rendering
  • Loading branch information
kevinchappell committed Apr 10, 2016
2 parents 03a49d2 + b1c0e86 commit 9b35c5b
Show file tree
Hide file tree
Showing 22 changed files with 38 additions and 31 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changelog

- v1.9.26 - Bugfix: saved subtypes not rendering [#134](https://github.com/kevinchappell/formBuilder/pull/134)
- v1.9.25 - Bugfix: Standardizes how field variables are processed from xml, defaultfields and new field sources [#129](https://github.com/kevinchappell/formBuilder/pull/129)
- v1.9.24 - Bugfix: Update internal field id to better handle multiple editors [#126](https://github.com/kevinchappell/formBuilder/pull/126)
- v1.9.23 - Bugfix: editing class attribute is wonky [#122](https://github.com/kevinchappell/formBuilder/pull/122)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
formBuilder v1.9.25
formBuilder v1.9.26
===========

[![Join the chat at https://gitter.im/kevinchappell/formBuilder](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/kevinchappell/formBuilder?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Expand Down
2 changes: 1 addition & 1 deletion bower.json
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/*"
],
Expand Down
2 changes: 1 addition & 1 deletion demo/assets/css/form-builder.css
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";
Expand Down
2 changes: 1 addition & 1 deletion demo/assets/css/form-builder.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/assets/css/form-render.css
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]>
*/
* {
Expand Down
2 changes: 1 addition & 1 deletion demo/assets/css/form-render.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/assets/css/site.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions demo/assets/js/form-builder.js
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';
Expand Down Expand Up @@ -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));

Expand Down Expand Up @@ -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]) {
Expand Down
4 changes: 2 additions & 2 deletions demo/assets/js/form-builder.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/assets/js/form-render.js
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';
Expand Down
Loading

0 comments on commit 9b35c5b

Please sign in to comment.