mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Don't select a zephyr until we've loaded them.
(imported from commit 04f72ae1e2ca67dfc1220baee11940008e0d2c91)
This commit is contained in:
@@ -115,10 +115,6 @@ $(document).ready(function() {
|
||||
$("body").delegate("p", "click", function(){
|
||||
select_zephyr($(this).parent().parent());
|
||||
});
|
||||
|
||||
$.get('get_state', function(data) {
|
||||
select_zephyr($("#" + data.pointer));
|
||||
}, dataType="json");
|
||||
});
|
||||
|
||||
var goto_pressed = false;
|
||||
@@ -300,6 +296,9 @@ $(function () {
|
||||
ich.addTemplate('zephyr', template);
|
||||
$(initial_zephyr_json).each(add_message);
|
||||
get_updates_longpoll();
|
||||
$.get('get_state', function(data) {
|
||||
select_zephyr($("#" + data.pointer));
|
||||
}, dataType="json");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user