Branded UI Fixed
This commit is contained in:
20
bd-national-template/content/assets/js/tabs.js
Normal file
20
bd-national-template/content/assets/js/tabs.js
Normal file
@@ -0,0 +1,20 @@
|
||||
try {
|
||||
var currentTabIndex = sessionStorage.getItem('fhir-resource-tab-index');
|
||||
} catch(exception) {
|
||||
}
|
||||
|
||||
if (!currentTabIndex)
|
||||
currentTabIndex = '0';
|
||||
|
||||
$( '#tabs' ).tabs({
|
||||
active: currentTabIndex,
|
||||
activate: function( event, ui ) {
|
||||
var active = $('.selector').tabs('option', 'active');
|
||||
currentTabIndex = ui.newTab.index();
|
||||
document.activeElement.blur();
|
||||
try {
|
||||
sessionStorage.setItem('fhir-resource-tab-index', currentTabIndex);
|
||||
} catch(exception) {
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user