Set to media type on upload. Music being default.

This commit is contained in:
Codenift 2019-11-07 15:31:09 -05:00
parent d5b04b30cc
commit 3338e9289a
5 changed files with 84 additions and 2 deletions

View file

@ -203,4 +203,11 @@ $(document).ready(function () {
self.recentUploadsTable = self.setupRecentUploadsTable();
//$("#recent_uploads_table.div.fg-toolbar").prepend('<b>Custom tool bar! Text/images etc.</b>');
$("#select_type").on("change",function(){
var mtValue = $("#select_type").val();
var mtText = $('#select_type option[value="'+mtValue+'"]').text();
$("#upload_type").text(" " + mtText);
Cookies.set('mt_upload', mtValue);
});
});