mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
fixed bug with getting current url in Firefox
This commit is contained in:
parent
c999ee32c5
commit
682d2ba2f0
2 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue