if (date === '')
return null;
- if (date === '0')
+ if (date === '0' || date === '00')
return new Date();
var parts = date.replace(/\s+/g, "").split(ns._date_format.sep);
if (elementId) {
var cookieName = 'jquery_ui_tab_'+ elementId;
- tabsParams.active = $.cookie(cookieName);
+ if (!window.location.hash) {
+ // only activate if there's no hash to overwrite it
+ tabsParams.active = $.cookie(cookieName);
+ }
tabsParams.activate = function(event, ui) {
var i = ui.newTab.parent().children().index(ui.newTab);
$.cookie(cookieName, i);