Skip to content

Commit

Permalink
Merge branch 'trunk' into danielbachhuber-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Oct 12, 2015
2 parents 7eae0bf + 1958844 commit 761b260
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions includes/CMB2_Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,10 @@ public function save_field( $meta_value ) {
$action = 'removed';
}

if ( $updated ) {
$this->value = $this->get_data();
}

$field_id = $this->id( true );

/**
Expand Down
3 changes: 2 additions & 1 deletion js/cmb2.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ window.CMB2 = (function(window, document, $, undefined){
// and on window resize
$(window).on( 'resize', cmb.resizeoEmbeds );

$(document).trigger( 'cmb_init', cmb );
};

cmb.resetTitlesAndIterator = function() {
Expand Down Expand Up @@ -926,7 +927,7 @@ window.CMB2 = (function(window, document, $, undefined){
}, 500);
};

$(document).ready(cmb.init);
$( cmb.init );

return cmb;

Expand Down
Loading

0 comments on commit 761b260

Please sign in to comment.