Commit 8edc8387 authored by Kenny Hall's avatar Kenny Hall

Fixed some code styling issues and corrected divider field type.

parent 703237d6
......@@ -159,7 +159,7 @@ define( ['views/app/drawer/optionRepeaterError'], function( ErrorView ) {
// The template requires a string.
return label.innerHTML;
},
renderSaveActionFieldSelect: function( dataID, value ){
renderNonSaveFieldSelect: function( dataID, value ){
var initialOption, select, emptyContainer, label;
var fields = nfRadio.channel( 'fields' ).request( 'get:collection' );
......@@ -175,7 +175,10 @@ define( ['views/app/drawer/optionRepeaterError'], function( ErrorView ) {
select.appendChild( initialOption );
// Build a lookup table for fields we want to remove from our fields list.
var removeFieldsLookup = [ 'html', 'submit', 'divider', 'recaptcha', 'spam', 'creditcard', 'creditcardcvc', 'creditcardexpiration', 'creditcardfullname', 'creditcardnumber', 'creditcardzip'];
var removeFieldsLookup = [ 'html', 'submit', 'hr',
'recaptcha', 'spam', 'creditcard', 'creditcardcvc',
'creditcardexpiration', 'creditcardfullname',
'creditcardnumber', 'creditcardzip' ];
fields.each( function( field ){
// Check for the field type in our lookup array and...
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -739,7 +739,7 @@ Label Three, value-three, 3
</div>
<div>
<# try { #>
{{{ data.renderSaveActionFieldSelect( 'field', data.field ) }}}
{{{ data.renderNonSaveFieldSelect( 'field', data.field ) }}}
<# } catch ( err ) { #>
<input type="text" class="setting" value="{{ data.field }}" data-id="field" >
<# } #>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment