Skip to content

Commit

Permalink
Added panel/widgets/{WIDGET_TYPE}/controls/wp_widget/loaded JS acti…
Browse files Browse the repository at this point in the history
…on to handle WP widget controls, closed #1886
  • Loading branch information
KingYes committed Jul 12, 2017
1 parent a661e3a commit 4ddc7a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions assets/dev/js/editor/views/controls/wp_widget.js
Expand Up @@ -39,6 +39,8 @@ ControlWPWidgetItemView = ControlBaseItemView.extend( {
wp.textWidgets.handleWidgetAdded( event, this.ui.form );
wp.mediaWidgets.handleWidgetAdded( event, this.ui.form );
}

elementor.hooks.doAction( 'panel/widgets/' + this.model.get( 'widget' ) + '/controls/wp_widget/loaded', this );
}, this )
} );
}
Expand Down
2 changes: 2 additions & 0 deletions assets/js/editor.js

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

0 comments on commit 4ddc7a0

Please sign in to comment.