Roundcube Community Forum

 

adding button to the task bar

Started by jamil_isayyed, October 18, 2013, 08:22:40 AM

Previous topic - Next topic

jamil_isayyed

Hello folks,

i have a question about adding a button to the task bar?, i manged to add a button as explained in the documentation as follow:

var button = $('<A>').attr('id', 'testButton').attr('style','background-image:url("test.gif");cursor:hand;cursor:pointer').html('click me!!');
        button.bind('click', function(e) { return rcmail.command('plugin.getForm', this); });

        //add and register
        rcmail.add_element(button, 'taskbar');

        rcmail.register_button('plugin.getForm', 'testId','link');
        rcmail.register_command('plugin.getForm', handlerfunction1, true);



the problem that the button appears after the logout, i need to change its place?? any idea how i can do it?

Thanks in advance.
Jamil Isayyed