Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Commit

Permalink
Fix repeatable field bug. Fixes #557.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Jun 16, 2014
1 parent 80d01ea commit 57d9983
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/cmb.js
Expand Up @@ -287,7 +287,7 @@ window.CMB = (function(window, document, $, undefined){
$inputs.filter(':checked').removeAttr( 'checked' );
$inputs.filter(':selected').removeAttr( 'selected' );

if ( $self.find('.cmb-group-title') ) {
if ( $self.find('.cmb-group-title').length ) {
$self.find( '.cmb-group-title h4' ).text( $self.data( 'title' ).replace( '{#}', ( cmb.idNumber + 1 ) ) );
}

Expand Down

0 comments on commit 57d9983

Please sign in to comment.