Skip to content

Commit

Permalink
Declare dependencies for jointjs, fixes #19
Browse files Browse the repository at this point in the history
  • Loading branch information
pglewis committed Jul 13, 2018
1 parent 1ebcad5 commit 8c1ffd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class-pods-visualize.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function enqueue_admin_scripts() {
$screen = get_current_screen();
if ( $this->plugin_screen_hook_suffix == $screen->id && function_exists( 'pods' ) ) {

wp_enqueue_script( 'jointjs', PODS_VISUALIZE_URL . 'includes/jointjs/joint.min.js' );
wp_enqueue_script( 'jointjs', PODS_VISUALIZE_URL . 'includes/jointjs/joint.min.js', array( 'jquery', 'backbone', 'underscore' ) );
wp_enqueue_script( 'jointjs-pods', PODS_VISUALIZE_URL . 'includes/js/jointjs-pods.js', array( 'jquery', 'jointjs' ), Pods_Visualize::VERSION );
wp_enqueue_script( $this->plugin_slug . '-admin-script', PODS_VISUALIZE_URL . 'includes/js/pods-visualize.js', array( 'jquery', 'jointjs' ), Pods_Visualize::VERSION );

Expand Down Expand Up @@ -227,7 +227,7 @@ private function get_data() {
$related_pod_name = $check[ 'pod' ][ 'name' ];
}
else {

$related_pod_name = $check[ 'object_name' ];
}
}
Expand Down

0 comments on commit 8c1ffd9

Please sign in to comment.