Commit 1bc3d0fb authored by Leo Iannacone's avatar Leo Iannacone

check if package exists in current view.packages

parent 3e13bb22
...@@ -353,7 +353,8 @@ function Page_Distrubion(socket) ...@@ -353,7 +353,8 @@ function Page_Distrubion(socket)
) )
{ // new package view { // new package view
// set status from packages // set status from packages
view.package.status = view.packages[view.package.orig_name].status if (view.packages[view.package.orig_name])
view.package.status = view.packages[view.package.orig_name].status
files.get() files.get()
file.clean() file.clean()
file.get() file.get()
...@@ -418,7 +419,8 @@ function Page_Distrubion(socket) ...@@ -418,7 +419,8 @@ function Page_Distrubion(socket)
// reset current view // reset current view
view.distribution = Utils.clone(new_view.distribution) view.distribution = Utils.clone(new_view.distribution)
view.package = Utils.clone(new_view.package) view.package = Utils.clone(new_view.package)
view.package.status = view.packages[view.package.orig_name].status if (view.packages[view.package.orig_name])
view.package.status = view.packages[view.package.orig_name].status
view.file = Utils.clone(new_view.file) view.file = Utils.clone(new_view.file)
update.page(old_view) update.page(old_view)
$('html').animate({scrollTop: 0}, 0); $('html').animate({scrollTop: 0}, 0);
......
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