Commit 9abed306 authored by Leo Iannacone's avatar Leo Iannacone

fix add /datestamp

parent aaabe195
...@@ -127,7 +127,7 @@ function Page_Distrubion() ...@@ -127,7 +127,7 @@ function Page_Distrubion()
$('#logs li').removeClass('active'); $('#logs li').removeClass('active');
} }
} }
var file = { var file = {
set: function(socket_data) { set: function(socket_data) {
$("#file pre").html(socket_data.file.content) $("#file pre").html(socket_data.file.content)
...@@ -156,7 +156,7 @@ function Page_Distrubion() ...@@ -156,7 +156,7 @@ function Page_Distrubion()
} }
} }
} }
var breadcrumb = { var breadcrumb = {
update: function(hash) { update: function(hash) {
if (! hash ) if (! hash )
...@@ -176,7 +176,7 @@ function Page_Distrubion() ...@@ -176,7 +176,7 @@ function Page_Distrubion()
$('.breadcrumb').html(new_html) $('.breadcrumb').html(new_html)
} }
} }
// stiky sidebar // stiky sidebar
var sticky = function() { var sticky = function() {
// $(window).off("scroll") // $(window).off("scroll")
...@@ -199,13 +199,13 @@ function Page_Distrubion() ...@@ -199,13 +199,13 @@ function Page_Distrubion()
packages.select() packages.select()
files.select() files.select()
} }
var unselect = function() { var unselect = function() {
$('#distributions li').removeClass('active') $('#distributions li').removeClass('active')
files.unselect() files.unselect()
packages.unselect() packages.unselect()
} }
var clean = function() { var clean = function() {
title.clean() title.clean()
packages.clean() packages.clean()
...@@ -233,8 +233,8 @@ function Page_Distrubion() ...@@ -233,8 +233,8 @@ function Page_Distrubion()
{ // new pacakge view { // new pacakge view
file.clean() file.clean()
files.get() files.get()
if (Utils.check_data_package(data) if ( Utils.check_data_package(data)
&& ! window.location.hash.split('/') > 3) && window.location.hash.split('/').length <= 3)
{ {
// I will always get datastamp file from package // I will always get datastamp file from package
window.location.hash += '/datestamp' window.location.hash += '/datestamp'
......
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