Active dashboard tab if there is no other tab to activate.
This commit is contained in:
parent
8470f36a9d
commit
7d69205a7f
|
@ -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();
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Reference in New Issue