_ribbonStartInit("Ribbon.CustomTab", false, null);
but the problem is, after a user changes it to another tab, i.e. "Read" or "Browse" the second pressing doesn't work. Therefore, the solution was - adding SelectRibbonTab() function:
$('img.CustomTabButtonClass').bind('click', function() { if (typeof(_ribbonStartInit) == "function") { try { _ribbonStartInit("Ribbon.CustomTab", false, null); } catch(e) { } SelectRibbonTab("Ribbon.CustomTab", true); } });
No comments:
Post a Comment