@@ -165,11 +165,13 @@ body { | |||||
min-width: 24px; | min-width: 24px; | ||||
height: 24px; | height: 24px; | ||||
border-radius: 4px; | border-radius: 4px; | ||||
background-color: #ff5858; | |||||
color: #fff; | color: #fff; | ||||
text-align: center; | text-align: center; | ||||
padding: 2px 5px; | padding: 2px 5px; | ||||
} | } | ||||
.navbar-new-comments-true { | |||||
background-color: #ff5858; | |||||
} | |||||
#navbar-search { | #navbar-search { | ||||
width: 300px; | width: 300px; | ||||
background-color: rgba(255, 255, 255, 0.9); | background-color: rgba(255, 255, 255, 0.9); | ||||
@@ -40,7 +40,13 @@ frappe.search = { | |||||
if(ui.item.onclick) { | if(ui.item.onclick) { | ||||
ui.item.onclick(ui.item.match); | ui.item.onclick(ui.item.match); | ||||
} else { | } else { | ||||
var previous_hash = window.location.hash; | |||||
frappe.set_route(ui.item.route); | frappe.set_route(ui.item.route); | ||||
// hashchange didn't fire! | |||||
if (window.location.hash == previous_hash) { | |||||
frappe.route(); | |||||
} | |||||
} | } | ||||
$(this).val(''); | $(this).val(''); | ||||
return false; | return false; | ||||