Skip to content

Commit

Permalink
Fix typo in last commit: check to make sure that group_id string is n…
Browse files Browse the repository at this point in the history
…ot empty, not that the i18n string is not empty.
  • Loading branch information
rjbaniel committed May 11, 2016
1 parent 5432aa4 commit 59aad16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/single.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
var cacsp_group_selector = $( '#cacsp-group-selector' ).select2( {
placeholder: SocialPaperI18n.group_placeholder
} );
if ( SocialPaperI18n !== '' ) {
if ( SocialPaperI18n.group_id !== '' ) {
cacsp_group_selector.select2( 'val', SocialPaperI18n.group_id );
}
}
Expand Down

0 comments on commit 59aad16

Please sign in to comment.