fixed bug with getting current url in Firefox

This commit is contained in:
coderaiser 2012-10-30 09:33:45 -04:00
parent c999ee32c5
commit 682d2ba2f0
2 changed files with 6 additions and 2 deletions

View file

@ -49,6 +49,8 @@ document.location.origin)
* Fixed bug with keybinding in FireFox
(removed KeyBinding call on window load).
* Fixed bug with getting url in Firefox.
2012.10.01, Version 0.1.7

View file

@ -1423,11 +1423,13 @@ CloudClient._changeLinks = function(pPanelID){
Util.setCurrentFile(pElement);
};
var lLocation = document.location,
lUrl = lLocation.protocol + '//' + lLocation.host;
for(var i = 0, n = a.length; i < n ; i++)
{
/* убираем адрес хоста*/
var link = a[i].href.replace(document.location.origin,'');
var link = a[i].href.replace(lUrl,'');
/* убираем значения, которые говорят, *
* об отсутствии js */