Move all zephyr HTML generation to the client

(imported from commit 3afec768a5cd220c14ce615e03c29ee22754fdf2)
This commit is contained in:
Keegan McAllister
2012-08-30 13:56:15 -04:00
parent ddacce81b7
commit d57d19e562
4 changed files with 24 additions and 33 deletions

View File

@@ -257,6 +257,10 @@ function add_message(index, zephyr) {
$("#table tr:last").after(new_str);
}
$(function() {
$(initial_zephyr_json).each(add_message);
});
function get_updates_longpoll(data) {
if (data && data.zephyrs) {
$.each(data.zephyrs, add_message);