CC-3351 : Track length should only show to tenths of a second in the library
created a length formatter to use in multiple places.
This commit is contained in:
parent
28bb97acfa
commit
19d13889af
14 changed files with 129 additions and 438 deletions
|
@ -1,39 +0,0 @@
|
|||
div.jjmenu {
|
||||
|
||||
position:absolute;
|
||||
background:#d2d2d2;
|
||||
border-bottom:2px solid #5b5b5b;
|
||||
border-right:1px solid #5b5b5b;
|
||||
padding:0px;
|
||||
z-index: 1011;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
div.jj_menu_item {
|
||||
color:black;
|
||||
border:1px solid #5b5b5b;
|
||||
border-bottom:none;
|
||||
background:#d2d2d2;
|
||||
background: -moz-linear-gradient(center top , #d2d2d2 0pt, #bcbcbc 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #d2d2d2), color-stop(100%, #bcbcbc));
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
div.jj_menu_item span {
|
||||
display:block;
|
||||
padding:4px 10px;
|
||||
}
|
||||
|
||||
div.jj_menu_item_more span {
|
||||
background:url(images/more.gif) right no-repeat;
|
||||
}
|
||||
div.jj_menu_item_more span {
|
||||
padding-right:20px;
|
||||
}
|
||||
|
||||
div.jj_menu_item_hover {
|
||||
background:#6e6e6e;
|
||||
background: -moz-linear-gradient(center top , #868686 0pt, #6e6e6e 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #868686), color-stop(100%, #6e6e6e));
|
||||
color:#FFF;
|
||||
}
|
|
@ -75,3 +75,7 @@
|
|||
.datatable_checkbox .DataTables_sort_wrapper {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.library_year {
|
||||
text-align: center;
|
||||
}
|
||||
|
|
|
@ -658,6 +658,11 @@ button.ColVis_Button.ColVis_ShowAll {
|
|||
margin: 0.5em 0.2em -0.5em 0.2em;
|
||||
}
|
||||
|
||||
.library_length {
|
||||
text-align: right;
|
||||
padding-right: 1em !important;
|
||||
}
|
||||
|
||||
/*----END Data Table----*/
|
||||
|
||||
fieldset {
|
||||
|
|
|
@ -225,8 +225,8 @@ $(document).ready(function() {
|
|||
/* Creator */ {"sTitle": "Creator", "mDataProp": "artist_name", "sClass": "library_creator"},
|
||||
/* Album */ {"sTitle": "Album", "mDataProp": "album_title", "sClass": "library_album"},
|
||||
/* Genre */ {"sTitle": "Genre", "mDataProp": "genre", "sClass": "library_genre"},
|
||||
/* Year */ {"sTitle": "Year", "mDataProp": "year", "sClass": "library_year"},
|
||||
/* Length */ {"sTitle": "Length", "mDataProp": "length", "sClass": "library_length"},
|
||||
/* Year */ {"sTitle": "Year", "mDataProp": "year", "sClass": "library_year", "sWidth": "60px"},
|
||||
/* Length */ {"sTitle": "Length", "mDataProp": "length", "sClass": "library_length", "sWidth": "80px"},
|
||||
/* Upload Time */ {"sTitle": "Uploaded", "mDataProp": "utime", "sClass": "library_upload_time"},
|
||||
/* Last Modified */ {"sTitle": "Last Modified", "mDataProp": "mtime", "bVisible": false, "sClass": "library_modified_time"},
|
||||
/* Track Number */ {"sTitle": "Track", "mDataProp": "track_number", "bSearchable": false, "bVisible": false, "sClass": "library_track"},
|
||||
|
@ -470,6 +470,16 @@ $(document).ready(function() {
|
|||
|
||||
function processMenuItems(oItems) {
|
||||
|
||||
//define an add to playlist callback.
|
||||
if (oItems.pl_add !== undefined) {
|
||||
|
||||
callback = function() {
|
||||
AIRTIME.playlist.fnAddItems([data.id], undefined, 'after');
|
||||
};
|
||||
|
||||
oItems.pl_add.callback = callback;
|
||||
}
|
||||
|
||||
//define an edit callback.
|
||||
if (oItems.edit !== undefined) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue