From 0306d6002586cfe166f6faa569c0d31f14bc6d51 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 17 Nov 2011 09:55:01 +0100 Subject: [PATCH] bweb: try to handle windows drive better in bresto --- gui/bweb/html/bresto.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gui/bweb/html/bresto.js b/gui/bweb/html/bresto.js index 5e62f464d5..d9fb76e924 100644 --- a/gui/bweb/html/bresto.js +++ b/gui/bweb/html/bresto.js @@ -444,8 +444,10 @@ Ext.onReady(function(){ if (r.json[4] == '..') { Ext.brestore.path = dirname(Ext.brestore.path); - } else if (r.json[4] == '/') { + } else if (r.json[4] == '/') { // unix root Ext.brestore.path = '/'; + } else if (r.json[4].match('^[a-zA-Z]:/$')) { // windows drive + Ext.brestore.path = r.json[4]; } else if (r.json[4] != '.') { Ext.brestore.path = Ext.brestore.path + r.json[4]; } @@ -961,7 +963,7 @@ Ext.onReady(function(){ for(var i=0;i