-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
I'm trying to run JS file after clicking on edit element, but it's not working
editElement: function (e) {
//console && console.log(e);
window.ViewTestElement.__super__.editElement.call(this, e);
var cyt_shortcode = vc.edit_element_block_view.model.get( 'shortcode' );
var selector = $("#vc_ui-panel-edit-element[data-vc-shortcode='"+cyt_shortcode+"']");
selector.addClass("cyt_product");
$(".cyt_product").find(".vc_move-param").remove();
$(".cyt_product").find(".vc_param_group-add_content").remove();
$(".cyt_product").find(".vc_delete-param").remove();
$(".cyt_product").find(".column_clone").remove();
},
Metadata
Metadata
Assignees
Labels
No labels