Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/Server/Coderr.Server.Web/Scripts/dashboard/jquery.app.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
toggleMenuItem = function (uri) {
if (window.location.pathname === window.WEB_ROOT && window.location.hash === '')

var webRoot = window.WEB_ROOT.toLocaleLowerCase();

if (window.location.pathname.toLocaleLowerCase() === webRoot && window.location.hash === '')
uri = window.WEB_ROOT + '#/';
var $a;
if (typeof uri === 'string') {

// we do not include root in links since
// we can exist in a virtual folder, which means
// that we would have had to parse links on all regular HTML pages.
var webRoot = window['WEB_ROOT'];
uri = uri.toLocaleLowerCase();
if (uri.indexOf(webRoot) === 0) {
uri = uri.substr(webRoot.length);
}
Expand Down