]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing string concatenation in javascript
authorThomas Mueller <thomas.mueller@tmit.eu>
Mon, 7 Jan 2013 23:32:41 +0000 (00:32 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Mon, 7 Jan 2013 23:32:41 +0000 (00:32 +0100)
 refs https://github.com/owncloud/core/commit/ae54364d7c8baf5138d166855db6431190963886

apps/files/js/files.js

index 038660e6e49e37e0c26cc8a931d13083d6dd0d12..bb298431e84afe1ea6d1c965574baea96451942c 100644 (file)
@@ -593,7 +593,7 @@ $(document).ready(function() {
                                        break;
                                case 'web':
                                        if(name.substr(0,8)!='https://' && name.substr(0,7)!='http://'){
-                                               name='http://'.name;
+                                               name='http://'+name;
                                        }
                                        var localName=name;
                                        if(localName.substr(localName.length-1,1)=='/'){//strip /