Move everything to Bootstrap 3. (WIP)

Styling changes.
Remove old unused css.
Some code cleanup on notification handler.
This commit is contained in:
Tim 2015-08-02 16:46:35 +02:00
parent 227e63cb50
commit d6b646323f
56 changed files with 3397 additions and 22794 deletions

View file

@ -20,7 +20,7 @@ history_table_options = {
"infoFiltered":"(filtered from _MAX_ total entries)",
"emptyTable": "No data in table",
},
"sPaginationType": "bootstrap",
"pagingType": "bootstrap",
"stateSave": true,
"processing": false,
"serverSide": true,
@ -55,17 +55,17 @@ history_table_options = {
$(td).html(cellData);
}
},
"className": "no-wrap hidden-phone"
"className": "no-wrap hidden-xs"
},
{
"targets": [2],
"data":"player",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== '') {
$(td).html('<a href="#info-modal" data-toggle="modal"><span data-toggle="tooltip" data-placement="left" title="Stream Info" id="stream-info"><i class="fa fa-lg fa-info-circle"></i></span></a>&nbsp'+cellData);
$(td).html('<a href="#" data-target="#info-modal" data-toggle="modal"><i class="fa fa-lg fa-info-circle"></i></a>&nbsp'+cellData);
}
},
"className": "modal-control no-wrap hidden-tablet hidden-phone"
"className": "modal-control no-wrap hidden-sm hidden-xs"
},
{
"targets": [3],
@ -75,7 +75,7 @@ history_table_options = {
$(td).html('n/a');
}
},
"className": "no-wrap hidden-phone"
"className": "no-wrap hidden-xs"
},
{
"targets": [4],
@ -103,7 +103,7 @@ history_table_options = {
return moment(data, "X").format(time_format);
},
"searchable": false,
"className": "no-wrap hidden-tablet hidden-phone"
"className": "no-wrap hidden-sm hidden-xs"
},
{
"targets": [6],
@ -116,7 +116,7 @@ history_table_options = {
}
},
"searchable": false,
"className": "no-wrap hidden-phone"
"className": "no-wrap hidden-xs"
},
{
"targets": [7],
@ -129,7 +129,7 @@ history_table_options = {
}
},
"searchable": false,
"className": "no-wrap hidden-tablet hidden-phone"
"className": "no-wrap hidden-md hidden-xs"
},
{
"targets": [8],
@ -142,7 +142,7 @@ history_table_options = {
}
},
"searchable": false,
"className": "no-wrap hidden-phone"
"className": "no-wrap hidden-xs"
},
{
"targets": [9],
@ -157,14 +157,18 @@ history_table_options = {
}
},
"searchable": false,
"orderable": true,
"className": "no-wrap hidden-tablet hidden-phone"
"orderable": false,
"className": "no-wrap hidden-md hidden-xs"
}
],
"drawCallback": function (settings) {
// Jump to top of page
// $('html,body').scrollTop(0);
$('#ajaxMsg').fadeOut();
// Create the tooltips.
$('.info-modal').each(function() {
$(this).tooltip();
});
},
"preDrawCallback": function(settings) {
var msg = "<div class='msg'><i class='fa fa-refresh fa-spin'></i>&nbspFetching rows...</div>";
@ -172,10 +176,6 @@ history_table_options = {
}
}
$('#history_table').on('mouseenter', 'td.modal-control span', function () {
$(this).tooltip();
});
$('#history_table').on('click', 'td.modal-control', function () {
var tr = $(this).parents('tr');
var row = history_table.row( tr );

View file

@ -2,7 +2,7 @@ var log_table_options = {
"destroy": true,
"serverSide": true,
"processing": false,
"sPaginationType": "bootstrap",
"pagingType": "bootstrap",
"order": [ 0, 'desc'],
"pageLength": 10,
"stateSave": true,
@ -17,12 +17,12 @@ var log_table_options = {
{
"targets": [0],
"width": "15%",
"className": "no-wrap hidden-phone"
"className": "no-wrap hidden-xs"
},
{
"targets": [1],
"width": "10%",
"className": "no-wrap hidden-tablet hidden-phone"
"className": "no-wrap hidden-sm hidden-xs"
},
{
"targets": [2],

View file

@ -2,7 +2,7 @@ var plex_log_table_options = {
"destroy": true,
"processing": false,
"serverSide": false,
"sPaginationType": "bootstrap",
"pagingType": "bootstrap",
"order": [ 0, 'desc'],
"pageLength": 10,
"stateSave": true,
@ -17,12 +17,12 @@ var plex_log_table_options = {
{
"targets": [0],
"width": "15%",
"className": "no-wrap hidden-phone"
"className": "no-wrap hidden-xs"
},
{
"targets": [1],
"width": "10%",
"className": "no-wrap hidden-tablet hidden-phone"
"className": "no-wrap hidden-sm hidden-xs"
},
{
"targets": [2],

View file

@ -1,7 +1,7 @@
sync_table_options = {
"processing": false,
"serverSide": false,
"sPaginationType": "bootstrap",
"pagingType": "bootstrap",
"order": [ 0, 'desc'],
"pageLength": 25,
"stateSave": true,
@ -26,7 +26,7 @@ sync_table_options = {
$(td).html(cellData.toProperCase());
}
},
"className": "no-wrap hidden-phone"
"className": "no-wrap hidden-xs"
},
{
"targets": [1],
@ -57,17 +57,17 @@ sync_table_options = {
"render": function ( data, type, full ) {
return data.toProperCase();
},
"className": "no-wrap hidden-tablet hidden-phone"
"className": "no-wrap hidden-sm hidden-xs"
},
{
"targets": [4],
"data": "device_name",
"className": "no-wrap hidden-phone"
"className": "no-wrap hidden-xs"
},
{
"targets": [5],
"data": "platform",
"className": "no-wrap hidden-tablet hidden-phone"
"className": "no-wrap hidden-sm hidden-xs"
},
{
"targets": [6],
@ -80,22 +80,22 @@ sync_table_options = {
$(td).html('0MB');
}
},
"className": "no-wrap hidden-tablet hidden-phone"
"className": "no-wrap hidden-sm hidden-xs"
},
{
"targets": [7],
"data": "item_count",
"className": "no-wrap hidden-phone"
"className": "no-wrap hidden-xs"
},
{
"targets": [8],
"data": "item_complete_count",
"className": "no-wrap hidden-tablet hidden-phone"
"className": "no-wrap hidden-sm hidden-xs"
},
{
"targets": [9],
"data": "item_downloaded_count",
"className": "no-wrap hidden-tablet hidden-phone"
"className": "no-wrap hidden-sm hidden-xs"
},
{
"targets": [10],
@ -107,7 +107,7 @@ sync_table_options = {
$(td).html('<span class="badge">0%</span>');
}
},
"className": "no-wrap hidden-tablet hidden-phone"
"className": "no-wrap hidden-sm hidden-xs"
}
],
"drawCallback": function (settings) {

View file

@ -9,7 +9,7 @@ user_ip_table_options = {
"emptyTable": "No data in table",
},
"stateSave": true,
"sPaginationType": "bootstrap",
"pagingType": "bootstrap",
"processing": false,
"serverSide": true,
"pageLength": 10,
@ -40,7 +40,7 @@ user_ip_table_options = {
$(td).html('n/a');
}
} else {
$(td).html('<a href="#ip-info-modal" data-toggle="modal"><span data-toggle="ip-tooltip" data-placement="left" title="IP Address Info" id="ip-info"><i class="icon-map-marker icon-white"></i></span>&nbsp' + cellData +'</a>');
$(td).html('<a href="javascript:void(0)" data-toggle="modal" data-target="#ip-info-modal"><span data-toggle="ip-tooltip" data-placement="left" title="IP Address Info" id="ip-info"><i class="fa fa-map-marker"></i></span>&nbsp' + cellData +'</a>');
}
} else {
$(td).html('n/a');
@ -52,19 +52,19 @@ user_ip_table_options = {
"targets": [2],
"data":"play_count",
"width": "10%",
"className": "hidden-phone"
"className": "hidden-xs"
},
{
"targets": [3],
"data":"platform",
"width": "15%",
"className": "hidden-phone"
"className": "hidden-xs"
},
{
"targets": [4],
"data":"last_watched",
"width": "30%",
"className": "hidden-tablet hidden-phone"
"className": "hidden-sm hidden-xs"
}
],
"drawCallback": function (settings) {

View file

@ -14,7 +14,7 @@ users_list_table_options = {
"order": [ 1, 'asc'],
"autoWidth": true,
"stateSave": true,
"sPaginationType": "bootstrap",
"pagingType": "bootstrap",
"columnDefs": [
{
"targets": [0],
@ -51,13 +51,13 @@ users_list_table_options = {
"render": function ( data, type, full ) {
return moment(data, "X").fromNow();
},
"className": "hidden-phone",
"className": "hidden-xs",
},
{
"targets": [3],
"data": "ip_address",
"searchable": false,
"className": "hidden-phone",
"className": "hidden-xs",
},
{
"targets": [4],