diff --git a/handlers/Streams/related/response.php b/handlers/Streams/related/response.php index 804e7df..a591d1a 100644 --- a/handlers/Streams/related/response.php +++ b/handlers/Streams/related/response.php @@ -176,10 +176,13 @@ function Streams_related_response() } if (!empty($_REQUEST['participants'])) { $limit = $_REQUEST['participants']; - $offset = -1; + $offset = 0; + $state = 'participating'; $participants = false; if ($stream->testReadLevel('participants')) { - $participants = Db::exportArray($stream->getParticipants(compact('limit', 'offset'))); + $participants = Db::exportArray($stream->getParticipants(@compact( + 'limit', 'offset', 'state' + ))); } Q_Response::setSlot('participants', $participants); } diff --git a/web/js/tools/userChooser.js b/web/js/tools/userChooser.js index f27db10..b481710 100644 --- a/web/js/tools/userChooser.js +++ b/web/js/tools/userChooser.js @@ -290,12 +290,12 @@ Q.Tool.define("Streams/userChooser", function(o) { tool.$results.remove(); } else { function _handlePointerEnd() { - tool.$results.remove(); + setTimeout(function () { + tool.$results.remove(); + }, 0); $(document).off(Q.Pointer.end, _handlePointerEnd); } - $(document).on(Q.Pointer.end, tool, function () { - setTimeout(_handlePointerEnd, 0); - }); + $(document).on(Q.Pointer.end, tool, _handlePointerEnd); } tool.focusedResults = false; }, 10);