HTML: Save last ordering state of sorting

Saving sorting state and apply the last sorting to new search results.

Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Gehad elrobey 2014-07-23 05:12:25 +02:00 committed by Dirk Hohndel
parent 47bdcbe261
commit c27ee46281
2 changed files with 47 additions and 20 deletions

View file

@ -158,12 +158,12 @@ function changeAdvSearch(e){
</div>
</div>
<div id="header">
<div onClick="list_sort('1')" class="item">Number</div>
<div onClick="list_sort('2')" class="item">Date</div>
<div onClick="list_sort('3')" class="item">Time</div>
<div onClick="list_sort('6')" class="item_large">Location</div>
<div onClick="list_sort('4')" class="item">Air Temp</div>
<div onClick="list_sort('5')" class="item">Water Temp</div>
<div onClick="change_sort_col('1')" class="item">Number</div>
<div onClick="change_sort_col('2')" class="item">Date</div>
<div onClick="change_sort_col('3')" class="item">Time</div>
<div onClick="change_sort_col('6')" class="item_large">Location</div>
<div onClick="change_sort_col('4')" class="item">Air Temp</div>
<div onClick="change_sort_col('5')" class="item">Water Temp</div>
</div>
<div id="diveslist">
</div>