Commit 245f5563 authored by Leo Iannacone's avatar Leo Iannacone

update html using append() where possible

parent 4d9fec98
......@@ -137,7 +137,7 @@ function Page_Distrubion(socket)
// and in html
var p_html = $("#packages li[id='package-"+ status_data.package + "'] a")
p_html.find('span.icon').remove()
p_html.html(p_html.html() + ' ' + Utils.get_status_icon_html(status_data))
p_html.append(Utils.get_status_icon_html(status_data))
if (Utils.check_view_package(view)
&& view.package.orig_name == status_data.package
&& view.distribution.name == status_data.distribution)
......@@ -243,7 +243,7 @@ function Page_Distrubion(socket)
},
append: function(new_content) {
var content = $("#file pre")
content.html(content.html() + new_content)
content.append(new_content)
if (config.preferences.autoscroll) {
// scroll down if file is covering footer
......@@ -352,7 +352,7 @@ function Page_Distrubion(socket)
panel.addClass('panel panel-' + info.className)
var div = $("#sticky-package .status")
div.find('span.icon').remove()
div.html(div.html() + ' ' + Utils.get_status_icon_html(status_data))
div.append(Utils.get_status_icon_html(status_data))
}
}
}
......
......@@ -53,7 +53,7 @@ function Page_Generic(socket)
},
append: function(status_package) {
$('#status .idle').hide()
$("#status ul").html($("#status ul").html() + " " + __get_status_html(status_package))
$("#status ul").append(__get_status_html(status_package))
},
update: function(status_package) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment