Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: mikemd on June 30, 2013, 11:43:44 AM

Title: How to set default value for '#taskbar .minmodetoggle' inside your Java script?
Post by: mikemd on June 30, 2013, 11:43:44 AM
Hello:

I am trying to customize the RoundCude to have the 'minimalmode' default state that maximize that shows icon + title tab. The default 'minimalmode' is minimize only show icon tab.

Where is the best location inside the Java Script to initial setup 'minimalmode' value?

Thank You
Mike
---------------------------------------------------------------------------------------
I find a code in ui.js that toggle 'minimalmode'.

$('#taskbar .minmodetoggle').click(function(e){
      var ismin = $(document.body).toggleClass('minimal').hasClass('minimal');
      rcmail.set_cookie('minimalmode', ismin?1:0);
      $(window).resize();
    });