Forums

Is it possible to delete or rename an action from admin list?

lsarakinos 07 Mar, 2015
1 Likes
Hello everybody.

After some research and time i found the answer myself
i found out that editing the file
administrator/components/com_chronoconnectivity5/chronoconnectivity/views/edit.php 

somewhere around line number 369
and in the div tag
<div id="actions-<?php echo $area; ?>-<?php echo $name; ?>" class="tab-pane">

i add the following code:
        <button type="button" class="remove_action_button btn btn-danger" onclick="remove_action('<?php echo $name ?>');">
                <?php echo l_('REMOVE_ACTION'); ?>
        </button>

which adds the button to call the jquery function 'remove action'

then i add the function to the javascript declarations
after the add_new_action_button_ function
at line 112;
        function remove_action(id){
                jQuery('#actions-admin-'+id).remove();
                jQuery('a[href="#actions-admin-'+id+'"]').parent('li').remove();
                //jQuery('#models_tabs_heads a:last').tab('show'); //activate last tab
                jQuery('html, body').animate({
                        scrollTop: jQuery('#page_top').offset().top
                }, 300);
                return false;
        }


tested and WORKED!!
offered to you
thanks once again for the great software and support
Kind Regards
Lefteris Sarakinos
This topic is locked and no more replies can be posted.