fix path for grid ftp files
authorMaciej Tronowski <mtro@man.poznan.pl>
Mon, 30 Mar 2015 15:21:15 +0000 (17:21 +0200)
committerMaciej Tronowski <mtro@man.poznan.pl>
Mon, 30 Mar 2015 15:21:15 +0000 (17:21 +0200)
qcg/templates/qcg/job_new.html

index 6f829d0..ebd9afc 100644 (file)
@@ -41,7 +41,7 @@
                             return;
                         }
 
-                        var file = fullPath(filex.host + filex.path.full() + '/', selected[0]);
+                        var file = fullPath(filex.host + '/' + filex.path.full() + '/', selected[0]);
 
                         target.selectize.clear();
                         target.selectize.addOption({value: file, text: file});
@@ -58,7 +58,7 @@
                 var target = this;
                 return gridftpButton.clone().click(function() {
                     $('#select-btn').off().click(function() {
-                        var path = filex.host + filex.path.full() + '/';
+                        var path = filex.host + '/' + filex.path.full() + '/';
 
                         _.each(filex.selectedFiles(), function(item) {
                             var file = fullPath(path, item);