Active dashboard tab if there is no other tab to activate.

This commit is contained in:
Mikaël Ates 2015-11-09 09:45:37 +01:00
parent 8470f36a9d
commit 7d69205a7f
1 changed files with 3 additions and 3 deletions

View File

@ -23,10 +23,9 @@
Last visited tab
*/
$("div#tabs").tabs();
var tab_active;
$('a.patient-tab').click(function() {
$.cookie('patient-last-tab', $(this).attr('id'), { path: location.pathname });
tab_active = $(this).attr('id');
var tab_active = $(this).attr('id');
if ( tab_active == 'tab-alert' ) {
ALERTS.refresh_alerts();
} else {
@ -39,8 +38,9 @@
}
});
if ($.cookie('patient-last-tab')) {
tab_active = $.cookie('patient-last-tab');
$('a#' + $.cookie('patient-last-tab')).click();
} else {
$('a#tab-dashboard').click();
};
/*