Skip to content

Commit

Permalink
change defaults assignment for continuity
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Oct 1, 2014
1 parent adf3596 commit 0572902
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions js/cmb2.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ window.CMB2 = (function(window, document, $, undefined){
file_frames : {},
repeatEls : 'input:not([type="button"]),select,textarea,.cmb2-media-status',
defaults : {
timePicker : l10n.defaults.time_picker,
datePicker : l10n.defaults.date_picker,
colorPicker : l10n.defaults.color_picker || {},
time_picker : l10n.defaults.time_picker,
date_picker : l10n.defaults.date_picker,
color_picker : l10n.defaults.color_picker || {},
},
styleBreakPoint : 450,
};
Expand Down Expand Up @@ -615,7 +615,7 @@ window.CMB2 = (function(window, document, $, undefined){
return;
}

$selector.timePicker( cmb.defaults.timePicker );
$selector.timePicker( cmb.defaults.time_picker );
};

cmb.initDatePickers = function( $selector ) {
Expand All @@ -624,7 +624,7 @@ window.CMB2 = (function(window, document, $, undefined){
}

$selector.datepicker( "destroy" );
$selector.datepicker( cmb.defaults.datePicker );
$selector.datepicker( cmb.defaults.date_picker );
};

cmb.initColorPickers = function( $selector ) {
Expand All @@ -633,7 +633,7 @@ window.CMB2 = (function(window, document, $, undefined){
}
if (typeof jQuery.wp === 'object' && typeof jQuery.wp.wpColorPicker === 'function') {

$selector.wpColorPicker( cmb.defaults.colorPicker );
$selector.wpColorPicker( cmb.defaults.color_picker );

} else {
$selector.each( function(i) {
Expand Down
Loading

0 comments on commit 0572902

Please sign in to comment.