Commit ec861b71 authored by Leo Iannacone's avatar Leo Iannacone

set error also in breadcrumps

parent ff756d22
...@@ -244,10 +244,12 @@ function Page_Distrubion(socket) ...@@ -244,10 +244,12 @@ function Page_Distrubion(socket)
} }
var breadcrumb = { var breadcrumb = {
update: function(hash) { update: function(label) {
if (! hash ) if (label) {
hash = window.location.hash $('.breadcrumb').html('<li class="active">' + label + '</li>')
hash = hash.replace('#', '') return
}
hash = hash = window.location.hash.replace('#', '')
var new_html = '' var new_html = ''
var new_hash = '#' var new_hash = '#'
var info = hash.split('/') var info = hash.split('/')
...@@ -340,6 +342,7 @@ function Page_Distrubion(socket) ...@@ -340,6 +342,7 @@ function Page_Distrubion(socket)
view: function() { view: function() {
$("#error").fadeIn(100) $("#error").fadeIn(100)
title.set("Something is wrong ...") title.set("Something is wrong ...")
breadcrumb.update('Something is wrong ...')
file.clean() file.clean()
files.hide() files.hide()
unselect() unselect()
......
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