From 700ef1f09aeafd5f773737ad43fd4c284d3869b6 Mon Sep 17 00:00:00 2001 From: alecpl Date: Sun, 25 Oct 2009 09:34:38 +0000 Subject: - Avoid unnecessary page loads for selected tab (#1486032) --- skins/default/functions.js | 1 + skins/default/settings.css | 1 + 2 files changed, 2 insertions(+) (limited to 'skins/default') diff --git a/skins/default/functions.js b/skins/default/functions.js index df8af15af..28af2e7e7 100644 --- a/skins/default/functions.js +++ b/skins/default/functions.js @@ -13,6 +13,7 @@ function rcube_init_settings_tabs() tab = '#settingstab' + (rcmail.env.action=='preferences' ? 'default' : (rcmail.env.action.indexOf('identity')>0 ? 'identities' : rcmail.env.action.replace(/\./g, ''))); $(tab).addClass('tablink-selected'); + $(tab + '> a').removeAttr('onclick').unbind('click').bind('click', function(){return false}); } function rcube_show_advanced(visible) diff --git a/skins/default/settings.css b/skins/default/settings.css index bf1ace072..b08a85fa0 100644 --- a/skins/default/settings.css +++ b/skins/default/settings.css @@ -42,6 +42,7 @@ span.tablink-selected a span.tablink-selected a { color: #000000; + cursor: default; } #rcmfd_timezone -- cgit v1.2.3