mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Updated adminpanel to be able to pin a list with fewer elements
This commit is contained in:
@@ -64,7 +64,7 @@ $(document).on("click", "#refresh_all", function(e){
|
|||||||
var output_pinned = '<option value="" disabled>Channels</option>';
|
var output_pinned = '<option value="" disabled>Channels</option>';
|
||||||
var output_delete = '<option value="" disabled>Channels</option>';
|
var output_delete = '<option value="" disabled>Channels</option>';
|
||||||
for(var x = 0; x < response.length; x++){
|
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_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>";
|
output_delete += "<option class='" + response[x]._id + "' value='" + response[x]._id + "'>" + response[x]._id + "</option>";
|
||||||
|
|||||||
Reference in New Issue
Block a user