Changeset 6919


Ignore:
Timestamp:
Feb 23, 2018, 2:57:23 PM (20 months ago)
Author:
kbut
Message:

fix baseUrl

Location:
lmd/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lmd/trunk/fuentes/admin-center-ltsp.install/modul/lliurex-ltsp/src/js/imageManager.js

    r6837 r6919  
    14301430                        var timer;
    14311431                        var getUrl = window.location;
    1432                         var baseUrl = getUrl .protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[1];
     1432                        var baseUrl = getUrl .protocol + "//" + getUrl.host;
     1433                        var pathname = getUrl.pathname.split('/');
     1434                        for(var i=1; i<pathname.length; i++){
     1435                            if(pathname[i].endsWith('php') || pathname[i] == "") break;
     1436                            baseUrl = baseUrl + "/" + pathname[i];
     1437                        }
    14331438                        req.open('POST',baseUrl+'/uploadiso.php');
    14341439                        req.upload.addEventListener("progress", self.progressUpload, false);
  • lmd/trunk/fuentes/debian/changelog

    r6870 r6919  
     1lmd (2.8.1) xenial; urgency=medium
     2
     3  * Fix path url
     4
     5 -- Raul Rodrigo Segura <raurodse@gmail.com>  Fri, 23 Feb 2018 14:55:59 +0100
     6
    17lmd (2.8) xenial; urgency=medium
    28
Note: See TracChangeset for help on using the changeset viewer.