Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
fix sort and reload page to fix hidden id issues
Browse files Browse the repository at this point in the history
  • Loading branch information
graboskyc committed Aug 30, 2019
1 parent 072a847 commit 87c52bb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Stitch-Hosting/admin/entries.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h5 class="modal-title">New Course</h5>
<textarea class="form-control" id="txt_value" rows="3"></textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-secondary" onclick="document.location.reload()">Close</button>
<button type="button" class="btn btn-success" onclick="saveNew()">Save</button>
</div>
</div>
Expand Down Expand Up @@ -226,9 +226,10 @@ <h5 class="modal-title">Image</h5>
}

function query() {
var pipeline = [{$match: {
"classid":getHashbang()
}}];
var pipeline = [
{$match: {"classid":getHashbang()}},
{$sort:{entryid:1}}
];
db.collection("shareable").aggregate(pipeline).asArray().then(presentResult).catch(err => {console.error(err)});
}

Expand Down

0 comments on commit 87c52bb

Please sign in to comment.