Skip to content

Commit

Permalink
removed: saving tab in movements.
Browse files Browse the repository at this point in the history
  • Loading branch information
vltansky committed Dec 4, 2014
1 parent 9acceae commit 447eb07
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions page/militaryAdvisor.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,9 @@ zJS.Page.militaryAdvisor = {
$ikaeasy_militaryView_cb.removeClass('ikaez_active');
$(this).addClass('ikaez_active');
updateTableActions(action);
zJS.Utils.settingsStorage.setItem('MilitaryMovements_tab', action);
//zJS.Utils.settingsStorage.setItem('MilitaryMovements_tab', action);
});

var active_tab=zJS.Utils.settingsStorage.getItem('MilitaryMovements_tab');
$('#js_MilitaryMovementsFleetMovementsTable a[data-ikaeztype='+active_tab+']').addClass('ikaez_active');
if(active_tab!="all") {
console.log('not true '+zJS.Utils.settingsStorage.getItem('MilitaryMovements_tab'));
$js_MilitaryMovementsFleetMovementsTable.find('tr:not(.ikaeasy_complete, '+active_tab+')').has('.mission_icon').hide();
}

function updateTableActions(action){
console.log('update table actions');
if(action=="all") {
Expand Down

0 comments on commit 447eb07

Please sign in to comment.