show qrcode for all file

This commit is contained in:
codeskyblue
2016-08-01 16:37:30 +08:00
parent 48ecbf43ab
commit 5641c9e8ff
2 changed files with 3 additions and 4 deletions

View File

@@ -100,9 +100,8 @@
<span class="hidden-xs">Download</span>
<span class="glyphicon glyphicon-download-alt"></span>
</a>
<a class="btn btn-default btn-xs hidden-xs" v-if="shouldHaveQrcode(f.name)
" v-on:click="genQrcode(f.name)" href="javascript:void(0)">
QRCode
<a class="btn btn-default btn-xs hidden-xs" v-on:click="genQrcode(f.name)" href="javascript:void(0)">
<span v-if="shouldHaveQrcode(f.name)">QRCode</span>
<span class="glyphicon glyphicon-qrcode"></span>
</a>
<a class="btn btn-default btn-xs visible-xs" v-if="shouldHaveQrcode(f.name)" href="{{genInstallURL(f.name)}}">

View File

@@ -107,7 +107,7 @@ var vm = new Vue({
$("#qrcode-modal").modal("show");
},
shouldHaveQrcode: function(name) {
return ['apk', 'ipa', 'htm', 'html'].indexOf(getExtention(name)) !== -1;
return ['apk', 'ipa'].indexOf(getExtention(name)) !== -1;
},
genFileClass: function(f) {
if (f.type == "dir") {