Commit 6000dac6 by Lee Munkyeong

ソート保存実装と更新ボタン追加

parent dc13b2c3
......@@ -109,11 +109,11 @@
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item sort-type" data-sort="0" onclick="CHK.changeSortType(this);">作業名順</a>
<a class="dropdown-item sort-type" data-sort="1" onclick="CHK.changeSortType(this);">作業期間が新しい順</a>
<a class="dropdown-item sort-type active" data-sort="2" onclick="CHK.changeSortType(this);">作業期間が古い順</a>
<a class="dropdown-item sort-type active" data-sort="2" id="defaultSort" onclick="CHK.changeSortType(this);">作業期間が古い順</a>
<a class="dropdown-item sort-type" data-sort="3" onclick="CHK.changeSortType(this);">報告タイプ順</a>
<a class="dropdown-item sort-type" data-sort="4" onclick="CHK.changeSortType(this);">閲覧日が新しい順</a>
</div>
<a href="javascript:CHK_L.sendAppCommand('refreshContent');" class="text-decoration-none py-2 lht-0 d-inline-block ml-3">
<a href="javascript:CHK_L.sendAppCommand('resetSearch');" class="text-decoration-none py-2 lht-0 d-inline-block ml-3">
<i class="fa fa-times text-dark"></i>
<span class="d-none d-md-inline text-dark fs-10">
リセット
......
......@@ -137,6 +137,7 @@ CHK.apiCmd = {
goOperation: "goOperation", //作業開始
goPanoramaEdit: "goPanoramaEdit", //パノラマ作業資料編集
refreshContent: "refreshContent", //新着更新
resetSearch: "resetSearch", //検索条件初期化
editAttached: "editAttached", //添付ファイル編集
saveAttached: "saveAttached", //添付ファイル保存
insertReport: "insertTaskReport", //作業報告保存
......@@ -2803,7 +2804,7 @@ CHK.createCategory = function(operationGroupMasterList) {
if (CHK.isIOS) {
sortIndex = CHK_iOS.getSortType();
} else if (CHK.isAndroid) {
// TODO: 端末に保存したsortTypeを取得
sortIndex = android.getSortType();
}
let sortType = document.getElementsByClassName("sort-type")[sortIndex];
CHK.changeSortType(sortType);
......@@ -2829,7 +2830,7 @@ CHK.createOperationList = function(operationList, isSearched = false) {
if (CHK.isIOS) {
webkit.messageHandlers.saveSortType.postMessage(sortType);
} else if (CHK.isAndroid) {
// TODO: sortTypeを端末に保存
android.setSortType(sortType);
}
}
switch(sortType) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment