Updated adminpanel to be able to pin a list with fewer elements

This commit is contained in:
Kasper Rynning-Tønnesen
2018-05-04 22:35:26 +02:00
parent e71fe4cf26
commit 6cde9f4674

View File

@@ -64,7 +64,7 @@ $(document).on("click", "#refresh_all", function(e){
var output_pinned = '<option value="" disabled>Channels</option>';
var output_delete = '<option value="" disabled>Channels</option>';
for(var x = 0; x < response.length; x++){
if(response[x].count > 5){
if(response[x].count > 2){
output_pinned += "<option class='" + response[x]._id + "' value='" + response[x]._id + "'>" + response[x]._id + "</option>";
}
output_delete += "<option class='" + response[x]._id + "' value='" + response[x]._id + "'>" + response[x]._id + "</option>";