Skip to content

Commit

Permalink
Typography style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dovy committed Sep 12, 2013
1 parent 623879d commit ba16903
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions inc/fields/typography/field_typography.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jQuery(document).ready(function($) {
//$('#' + mainID + ' select.redux-typography-script').val('');
var google = option.data('google'); // Check if font is a google font
// Page load. Speeds things up memory wise to offload to client
if (!$('#' + mainID).hasClass('typography-initialized') && google) {
if (!$('#' + mainID).hasClass('typography-initialized')) {
style = $('#' + mainID + ' select.redux-typography-style').data('value');
script = $('#' + mainID + ' select.redux-typography-script').data('value');
if (style !== "") {
Expand Down Expand Up @@ -83,7 +83,7 @@ jQuery(document).ready(function($) {
} else {
if (details) {
$.each(details, function(index, value) {
if (index === "normal") {
if (index === style || index === "normal") {
selected = ' selected="selected"';
$('#' + mainID + ' .typography-style .select2-chosen').text(value);
} else {
Expand Down
2 changes: 1 addition & 1 deletion inc/fields/typography/field_typography.min.js

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

0 comments on commit ba16903

Please sign in to comment.