Skip to content

Commit

Permalink
add history back button
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Aug 5, 2016
1 parent 644cbbc commit 37b71cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions res/index.tmpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
<!-- <button class="btn btn-xs btn-default" v-on:click='toggleHidden()'>
Back <i class="fa" v-bind:class='showHidden ? "fa-eye" : "fa-eye-slash"'></i>
</button> -->
<button class="btn btn-xs btn-default" onclick="history.back()">
Back <i class="fa fa-arrow-left"></i>
</button>
<button class="btn btn-xs btn-default" v-on:click='toggleHidden()'>
Hidden <i class="fa" v-bind:class='showHidden ? "fa-eye" : "fa-eye-slash"'></i>
</button>
Expand Down
1 change: 1 addition & 0 deletions res/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ var vm = new Vue({
computed: {
computedFiles: function() {
var that = this;
that.preview.filename = null;

var files = this.files.filter(function(f) {
if (f.name == 'README.md') {
Expand Down

0 comments on commit 37b71cb

Please sign in to comment.