]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/commitdiff
Add upload button
authorJohannes Zellner <johannes@nebulon.de>
Tue, 1 Mar 2016 14:22:47 +0000 (15:22 +0100)
committerJohannes Zellner <johannes@nebulon.de>
Tue, 1 Mar 2016 14:22:47 +0000 (15:22 +0100)
app/index.html
app/js/app.js

index 773b5cf6c35e0c691fbd5067dd5390fac23fd251..78f5a948b96f80df8647ef4da150f30597d7f3d3 100644 (file)
@@ -25,7 +25,6 @@
             <!-- Collect the nav links, forms, and other content for toggling -->
             <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                 <ul class="nav navbar-nav navbar-right">
-                    <li v-show="session.valid"><a href="#">Upload</a></li>
                     <li v-show="session.valid"><a href="#" ng-click="logout()">Logout</a></li>
                 </ul>
             </div>
 
     <div class="container" v-show="session.valid && !busy" v-cloak>
         <div class="row">
+            <div class="col-lg-12">
+                <center>
+                    <button class="btn btn-primary">Upload</button>
+                </center>
+                <br/>
+            </div>
             <div class="col-lg-12">
                 <ol class="breadcrumb">
                     <li><i class="fa fa-home"></i>&nbsp;</li>
index 10a489cce59e89af843379a2f5ffbb5ef0034c89..b71a7ede02438cd6d946d75bc1c1ef508bc3888b 100644 (file)
@@ -55,7 +55,6 @@ function loadDirectory(filePath) {
         app.entries = result.body.entries;
         app.path = filePath;
         app.pathParts = filePath.split('/').filter(function (e) { return !!e; });
-        console.log(app.pathParts)
     });
 }
 
@@ -64,7 +63,7 @@ function open(entry) {
 
     if (entry.isDirectory) return loadDirectory(path);
 
-    window.location.href = window.location.origin + path;
+    window.open(path);
 }
 
 function up() {