Skip to content

Commit

Permalink
Merge pull request #295 from alleyinteractive/sortables-in-tabs
Browse files Browse the repository at this point in the history
Re-init sortables on tab switch
  • Loading branch information
mboynes committed Jan 16, 2015
2 parents 011b3d3 + 06cd8b4 commit 053ce42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fieldmanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function fieldmanager_load_file( $file ) {
* Enqueue CSS and JS in the Dashboard.
*/
function fieldmanager_enqueue_scripts() {
wp_enqueue_script( 'fieldmanager_script', fieldmanager_get_baseurl() . 'js/fieldmanager.js', array( 'jquery' ), '1.0.5' );
wp_enqueue_script( 'fieldmanager_script', fieldmanager_get_baseurl() . 'js/fieldmanager.js', array( 'jquery' ), '1.0.6' );
wp_enqueue_style( 'fieldmanager_style', fieldmanager_get_baseurl() . 'css/fieldmanager.css', array(), '1.0.1' );
wp_enqueue_script( 'jquery-ui-sortable' );
}
Expand Down
2 changes: 2 additions & 0 deletions js/fieldmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ $( document ).ready( function () {

init_label_macros();
init_sortable();

$( document ).on( 'fm_activate_tab', init_sortable );
} );

} )( jQuery );

0 comments on commit 053ce42

Please sign in to comment.