Added option to upload a new format to a given book

This commit is contained in:
kyos
2017-08-09 19:56:46 +02:00
parent fe52de6b4b
commit aa4a5dc3ef
5 changed files with 54 additions and 2 deletions
+3
View File
@@ -62,3 +62,6 @@ span.glyphicon.glyphicon-tags {padding-right: 5px;color: #999;vertical-align: te
#shelf-action-errors {
margin-left: 5px;
}
.upload-format-input-text {display: initial;}
#btn-upload-format {display: none;}
+8
View File
@@ -200,3 +200,11 @@ $("#search").on("change input.typeahead:selected", function(){
});
});
});
$("#btn-upload-format").on('change', function () {
var filename = $(this).val();
if (filename.substring(3,11) == 'fakepath') {
filename = filename.substring(12);
} // Remove c:\fake at beginning from localhost chrome
$('#upload-format').html(filename);
});