if( typeof arf_add_action == 'undefined' ){ arf_actions = []; function arf_add_action( action_name, callback, priority ) { if ( ! priority ) { priority = 10; } if ( priority > 100 ) { priority = 100; } if ( priority < 0 ) { priority = 0; } if( typeof arf_actions == 'undefined' ){ arf_actions = []; } if ( typeof arf_actions[action_name] == 'undefined' ) { arf_actions[action_name] = []; } if ( typeof arf_actions[action_name][priority] == 'undefined' ) { arf_actions[action_name][priority] = [] } arf_actions[action_name][priority].push( callback ); } function arf_do_action() { if ( arguments.length == 0 ) { return; } var args_accepted = Array.prototype.slice.call(arguments), action_name = args_accepted.shift(), _this = this, i, ilen, j, jlen; if ( typeof arf_actions[action_name] == 'undefined' ) { return; } for ( i = 0, ilen=100; i<=ilen; i++ ) { if ( arf_actions[action_name][i] ) { for ( j = 0, jlen=arf_actions[action_name][i].length; j
function arf_open_modal_box_in_nav_menu(menu_id,form_id){ var nav_menu_link_popup_data_id = jQuery("#arf_nav_menu_link_"+form_id).find('#arf_modal_default').attr('data-link-popup-id'); if(nav_menu_link_popup_data_id != ""){ jQuery("#arf_nav_menu_link_"+form_id).find(".arform_modal_link_"+form_id+"_"+nav_menu_link_popup_data_id).trigger( "click" ); } }