Renamed media type to track type for tracks

This commit is contained in:
Codenift 2020-01-06 17:15:04 -05:00
parent 3338e9289a
commit 386918da2b
23 changed files with 111 additions and 111 deletions

View file

@ -641,7 +641,7 @@ table#recent_uploads_table td
right: 0;
}
#media_type_selection {
#track_type_selection {
position: absolute;
right: 2px;
top: 0;

View file

@ -100,7 +100,7 @@
}
.library_year,
.library_media_type {
.library_track_type {
text-align: center;
}

View file

@ -55,7 +55,7 @@ var AIRTIME = (function(AIRTIME) {
"info_url" : "s",
"replay_gain" : "n",
"artwork" : "s",
"media_type" : "s"
"track_type" : "s"
};
if (AIRTIME.library === undefined) {
@ -592,7 +592,7 @@ var AIRTIME = (function(AIRTIME) {
/* Cue Out */ { "sTitle" : $.i18n._("Cue Out") , "mDataProp" : "cueout" , "bVisible" : false , "sClass" : "library_length" , "sWidth" : "80px" },
/* Description */ { "sTitle" : $.i18n._("Description") , "mDataProp" : "description" , "bVisible" : false , "sClass" : "library_description" , "sWidth" : "150px" },
/* Encoded */ { "sTitle" : $.i18n._("Encoded By") , "mDataProp" : "encoded_by" , "bVisible" : false , "sClass" : "library_encoded" , "sWidth" : "150px" },
/* Media Type */ { "sTitle" : $.i18n._("Type") , "mDataProp" : "media_type" , "bVisible" : false , "sClass" : "library_media_type" , "sWidth" : "60px" },
/* Track Type */ { "sTitle" : $.i18n._("Type") , "mDataProp" : "track_type" , "bVisible" : false , "sClass" : "library_track_type" , "sWidth" : "60px" },
/* Genre */ { "sTitle" : $.i18n._("Genre") , "mDataProp" : "genre" , "sClass" : "library_genre" , "sWidth" : "100px" },
/* ISRC Number */ { "sTitle" : $.i18n._("ISRC") , "mDataProp" : "isrc_number" , "bVisible" : false , "sClass" : "library_isrc" , "sWidth" : "150px" },
/* Label */ { "sTitle" : $.i18n._("Label") , "mDataProp" : "label" , "bVisible" : false , "sClass" : "library_label" , "sWidth" : "125px" },
@ -1599,7 +1599,7 @@ var validationTypes = {
"track_number" : "i",
"info_url" : "s",
"artwork" : "s",
"media_type" : "s",
"track_type" : "s",
"year" : "i"
};

View file

@ -205,9 +205,9 @@ $(document).ready(function () {
//$("#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);
var ttValue = $("#select_type").val();
var ttText = $('#select_type option[value="'+ttValue+'"]').text();
$("#upload_type").text(" " + ttText);
Cookies.set('tt_upload', ttValue);
});
});

View file

@ -875,7 +875,7 @@ var criteriaTypes = {
"track_number" : "n",
"info_url" : "s",
"year" : "n",
"media_type" : "s"
"track_type" : "s"
};
var stringCriteriaOptions = {