Commit a3273563 authored by Leo Iannacone's avatar Leo Iannacone

fix check status update on sticky

parent cf687db5
...@@ -237,10 +237,14 @@ function Page_Distrubion(socket) ...@@ -237,10 +237,14 @@ function Page_Distrubion(socket)
} }
}, },
set_status: function(status_data) { set_status: function(status_data) {
console.log(status_data) if ( Utils.check_data_package(data)
var div = $("#sticky-view .status") && status_data.distribution == data.distribution.name
div.find('span.icon').remove() && status_data.package == data.package.orig_name)
div.html(div.html() + ' ' + Utils.get_status_icon_html(status_data)) {
var div = $("#sticky-view .status")
div.find('span.icon').remove()
div.html(div.html() + ' ' + Utils.get_status_icon_html(status_data))
}
} }
} }
......
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