Commit 7934dcc4 authored by Leo Iannacone's avatar Leo Iannacone

fix no datestamp load on package double click

parent 2bfc4512
...@@ -44,7 +44,8 @@ function Page_Distrubion(socket) ...@@ -44,7 +44,8 @@ function Page_Distrubion(socket)
tmp.file = null tmp.file = null
socket_data.distribution.packages.forEach(function(p){ socket_data.distribution.packages.forEach(function(p){
tmp.package = p tmp.package = p
$('#packages ul').append('<li id="package-' + p.orig_name + '"><a href="' + Utils.from_data_to_hash(tmp) + '">'+ p.name + ' <span>'+p.version+'</span></a></li>') // get datestamp if package is clicked
$('#packages ul').append('<li id="package-' + p.orig_name + '"><a href="' + Utils.from_data_to_hash(tmp) + '/datestamp">'+ p.name + ' <span>'+p.version+'</span></a></li>')
}) })
packages.select() packages.select()
}, },
...@@ -295,14 +296,10 @@ function Page_Distrubion(socket) ...@@ -295,14 +296,10 @@ function Page_Distrubion(socket)
|| data.package.orig_name != old_data.package.orig_name || data.package.orig_name != old_data.package.orig_name
) )
{ // new pacakge view { // new pacakge view
file.clean()
files.get() files.get()
if ( Utils.check_data_package(data) // I will always get datestamp file from package view
&& window.location.hash.split('/').length <= 3) file.clean()
{ file.get()
// I will always get datastamp file from package
window.location.hash += '/datestamp'
}
} }
else if ( ! Utils.check_data_file(old_data) else if ( ! Utils.check_data_file(old_data)
|| ! Utils.check_data_file(data) || ! Utils.check_data_file(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