Items 1-12 out of 19652 displayed
Angular UI has a sortable directive,Click Here for Demo
Code located at
Handle the mousedown-event instead of the click-event.
The mousedown event will be handled before the focus of another element is lost. In your mousedown...
You can check if the channel is a DMChannel: You should design your sorting function accordingly: (because <script>
$(document).ready(function()
var phpvalue = <?php echo $var; ?>
});
</script>
if (message.channel instanceof...
items.sort(function(a, b) {
return a.sort1 - b.sort1 || a.sort2 - b.sort2;
});
||
...