joomla/joomla-platform — Issue #625: No way to disable useStorage in Jhtml tabs
Author: thinkeryvin
Created: 2011-12-09 19:58:46+00:00
State: open

In the JHtmlTabs class, there is no way to disable the useStorage option used in the tabs.js. When passing 'useCookie=>false' to the JHtmlTabs class, the 'useStorage' option is set to null instead of 'false'. When 'useStorage' is null, tabs.js sets it to true by default. Should it be set to 'false' instead of null?

'''$opt['useStorage']	= (isset($params['useCookie']) && $params['useCookie']) ? 'true' : null ;'''

Instead, use:

'''$opt['useStorage']	= (isset($params['useCookie']) && $params['useCookie']) ? 'true' : 'false' ;'''