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

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -1,66 +0,0 @@
// check if browser supports session storage, if not log error in console.
if(sessionStorage === null) console.log("Session storage not supported by this browser.");
// get cache object
var temp = sessionStorage.getItem('cacheObj');
var cacheObj = $.parseJSON(temp);
// create cache object if it doesn't exist
if (cacheObj === null) {
var cacheObj = new Object();
}
// setCache function
// usage: setCache(unique_identifier, data_to_be_cached, minutes_to_remain_cached [optional, default = 60] )
function setCache(postId, postData, validityTime) {
validityTime = typeof validityTime !== 'undefined' ? validityTime : 60;
// get the current time
var milliseconds = new Date().getTime();
if (cacheObj.length > 0) {
var objectExists = false;
//check if we already have this data stored and is current
for (var i = 0; i < cacheObj.length; i++) {
if (cacheObj[i].postId === postId) {
objectExists = true;
}
}
// add the data to the object if it's not there already
if (!objectExists) {
cacheObj.push( { postId: postId, data: postData, expire: (milliseconds + (validityTime * 60 * 1000)) } );
sessionStorage.setItem('cacheObj', JSON.stringify(cacheObj));
}
} else {
cacheObj = [ { postId: postId, data: postData, expire: (milliseconds + (validityTime * 60 * 1000)) } ];
sessionStorage.setItem('cacheObj', JSON.stringify(cacheObj));
}
};
// getCache function
// usage: getCache(unique_identifier)
function getCache(postId) {
// get the current time
var milliseconds = new Date().getTime();
if (cacheObj.length > 0) {
for (var i = 0; i < cacheObj.length; i++) {
if (cacheObj[i].postId === postId) {
// check if item has expired
if (milliseconds < cacheObj[i].expire) {
return cacheObj[i].data;
} else {
// if item expired then remove from cache object
console.log('Object expired, destroying.');
cacheObj.splice(i, 1);
}
}
}
}
return false;
};

View file

@ -1,17 +0,0 @@
window.log = function(){
log.history = log.history || [];
log.history.push(arguments);
arguments.callee = arguments.callee.caller;
if (this.console) {
console.log(Array.prototype.slice.call(arguments));
}
};
function toggle(source) {
checkboxes = document.getElementsByClassName('checkbox');
for (var i in checkboxes) {
checkboxes[i].checked = source.checked;
}
}

View file

@ -1,162 +0,0 @@
/*! DataTables Bootstrap 2 integration
* ©2011-2014 SpryMedia Ltd - datatables.net/license
*/
/**
* DataTables integration for Bootstrap 2. This requires Bootstrap 2 and
* DataTables 1.10 or newer.
*
* This file sets the defaults and adds options to DataTables to style its
* controls using Bootstrap. See http://datatables.net/manual/styling/bootstrap
* for further information.
*/
(function(window, document, $, DataTable, undefined){
$.extend( true, DataTable.defaults, {
"dom":
"<'row-fluid'<'span6'l><'span6'f>r>" +
"<'row-fluid'<'span12't>>" +
"<'row-fluid'<'span6'i><'span6'p>>",
renderer: 'bootstrap'
} );
/* Default class modification */
$.extend( DataTable.ext.classes, {
sWrapper: "dataTables_wrapper form-inline dt-bootstrap"
} );
/* Bootstrap paging button renderer */
DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, buttons, page, pages ) {
var api = new DataTable.Api( settings );
var classes = settings.oClasses;
var lang = settings.oLanguage.oPaginate;
var btnDisplay, btnClass;
var attach = function( container, buttons ) {
var i, ien, node, button;
var clickHandler = function ( e ) {
e.preventDefault();
if ( !$(e.currentTarget).hasClass('disabled') ) {
api.page( e.data.action ).draw( false );
}
};
for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
button = buttons[i];
if ( $.isArray( button ) ) {
attach( container, button );
}
else {
btnDisplay = '';
btnClass = '';
switch ( button ) {
case 'ellipsis':
btnDisplay = '&hellip;';
btnClass = 'disabled';
break;
case 'first':
btnDisplay = lang.sFirst;
btnClass = button + (page > 0 ?
'' : ' disabled');
break;
case 'previous':
btnDisplay = lang.sPrevious;
btnClass = button + (page > 0 ?
'' : ' disabled');
break;
case 'next':
btnDisplay = lang.sNext;
btnClass = button + (page < pages-1 ?
'' : ' disabled');
break;
case 'last':
btnDisplay = lang.sLast;
btnClass = button + (page < pages-1 ?
'' : ' disabled');
break;
default:
btnDisplay = button + 1;
btnClass = page === button ?
'active' : '';
break;
}
if ( btnDisplay ) {
node = $('<li>', {
'class': classes.sPageButton+' '+btnClass,
'aria-controls': settings.sTableId,
'tabindex': settings.iTabIndex,
'id': idx === 0 && typeof button === 'string' ?
settings.sTableId +'_'+ button :
null
} )
.append( $('<a>', {
'href': '#'
} )
.html( btnDisplay )
)
.appendTo( container );
settings.oApi._fnBindAction(
node, {action: button}, clickHandler
);
}
}
}
};
attach(
$(host).empty().html('<div class="pagination"><ul/></div>').find('ul'),
buttons
);
};
/*
* TableTools Bootstrap compatibility
* Required TableTools 2.1+
*/
if ( DataTable.TableTools ) {
// Set the classes that TableTools uses to something suitable for Bootstrap
$.extend( true, DataTable.TableTools.classes, {
"container": "DTTT btn-group",
"buttons": {
"normal": "btn",
"disabled": "disabled"
},
"collection": {
"container": "DTTT_dropdown dropdown-menu",
"buttons": {
"normal": "",
"disabled": "disabled"
}
},
"print": {
"info": "DTTT_print_info modal"
},
"select": {
"row": "active"
}
} );
// Have the collection use a bootstrap compatible dropdown
$.extend( true, DataTable.TableTools.DEFAULTS.oTags, {
"collection": {
"container": "ul",
"button": "li",
"liner": "a"
}
} );
}
})(window, document, jQuery, jQuery.fn.dataTable);

View file

@ -0,0 +1,8 @@
/*!
DataTables Bootstrap 3 integration
©2011-2014 SpryMedia Ltd - datatables.net/license
*/
(function(l,q){var e=function(b,c){b.extend(!0,c.defaults,{dom:"<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",renderer:"bootstrap"});b.extend(c.ext.classes,{sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm"});c.ext.renderer.pageButton.bootstrap=function(g,e,r,s,i,m){var t=new c.Api(g),u=g.oClasses,j=g.oLanguage.oPaginate,d,f,n=0,p=function(c,e){var k,h,o,a,l=function(a){a.preventDefault();
b(a.currentTarget).hasClass("disabled")||t.page(a.data.action).draw(!1)};k=0;for(h=e.length;k<h;k++)if(a=e[k],b.isArray(a))p(c,a);else{f=d="";switch(a){case "ellipsis":d="&hellip;";f="disabled";break;case "first":d=j.sFirst;f=a+(0<i?"":" disabled");break;case "previous":d=j.sPrevious;f=a+(0<i?"":" disabled");break;case "next":d=j.sNext;f=a+(i<m-1?"":" disabled");break;case "last":d=j.sLast;f=a+(i<m-1?"":" disabled");break;default:d=a+1,f=i===a?"active":""}d&&(o=b("<li>",{"class":u.sPageButton+" "+
f,id:0===r&&"string"===typeof a?g.sTableId+"_"+a:null}).append(b("<a>",{href:"#","aria-controls":g.sTableId,"data-dt-idx":n,tabindex:g.iTabIndex}).html(d)).appendTo(c),g.oApi._fnBindAction(o,{action:a},l),n++)}},h;try{h=b(q.activeElement).data("dt-idx")}catch(l){}p(b(e).empty().html('<ul class="pagination"/>').children("ul"),s);h&&b(e).find("[data-dt-idx="+h+"]").focus()};c.TableTools&&(b.extend(!0,c.TableTools.classes,{container:"DTTT btn-group",buttons:{normal:"btn btn-default",disabled:"disabled"},
collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:"disabled"}},print:{info:"DTTT_print_info"},select:{row:"active"}}),b.extend(!0,c.TableTools.DEFAULTS.oTags,{collection:{container:"ul",button:"li",liner:"a"}}))};"function"===typeof define&&define.amd?define(["jquery","datatables"],e):"object"===typeof exports?e(require("jquery"),require("datatables")):jQuery&&e(jQuery,jQuery.fn.dataTable)})(window,document);

View file

@ -26,10 +26,10 @@ $.extend( $.fn.dataTableExt.oPagination, {
}
};
$(nPaging).addClass('pagination').append(
'<ul>'+
'<li class="prev disabled"><a href="#">&larr; '+oLang.sPrevious+'</a></li>'+
'<li class="next disabled"><a href="#">'+oLang.sNext+' &rarr; </a></li>'+
$(nPaging).append(
'<ul class="pagination">'+
'<li class="prev disabled"><a href="#"><i class="icon-double-angle-left"></i> '+oLang.sPrevious+'</a></li>'+
'<li class="next disabled"><a href="#">'+oLang.sNext+' <i class="icon-double-angle-right"></i></a></li>'+
'</ul>'
);
var els = $('a', nPaging);
@ -65,7 +65,7 @@ $.extend( $.fn.dataTableExt.oPagination, {
// Add the new list items and their event handlers
for ( j=iStart ; j<=iEnd ; j++ ) {
sClass = (j==oPaging.iPage+1) ? 'class="active"' : '';
$('<li '+sClass+'><a class="hidden-phone" href="#">'+j+'</a></li>')
$('<li '+sClass+'><a href="#">'+j+'</a></li>')
.insertBefore( $('li:last', an[i])[0] )
.bind('click', function (e) {
e.preventDefault();
@ -89,4 +89,29 @@ $.extend( $.fn.dataTableExt.oPagination, {
}
}
}
} );
} );
$(function(){
$('.datatable').each(function(){
var datatable = $(this);
// SEARCH - Add the placeholder for Search and Turn this into in-line formcontrol
var search_input = datatable.closest('.dataTables_wrapper').find('div[id$=_filter] input');
search_input.attr('placeholder', 'Search')
search_input.addClass('form-control input-small')
search_input.css('width', '250px')
// SEARCH CLEAR - Use an Icon
var clear_input = datatable.closest('.dataTables_wrapper').find('div[id$=_filter] a');
clear_input.html('<i class="icon-remove-circle icon-large"></i>')
clear_input.css('margin-left', '5px')
// LENGTH - Inline-Form control
var length_sel = datatable.closest('.dataTables_wrapper').find('div[id$=_length] select');
length_sel.addClass('form-control input-small')
length_sel.css('width', '75px')
// LENGTH - Info adjust location
var length_sel = datatable.closest('.dataTables_wrapper').find('div[id$=_info]');
length_sel.css('margin-top', '18px')
});
});

View file

@ -240,16 +240,16 @@ function isPrivateIP(ip_address) {
function humanTime(seconds) {
if (seconds >= 86400) {
text = '<h1> / </h1><h3>' + Math.floor(moment.duration(seconds, 'seconds').asDays()) +
text = '<h3>' + Math.floor(moment.duration(seconds, 'seconds').asDays()) +
'</h3><p> days </p><h3>' + Math.floor(moment.duration((seconds % 86400), 'seconds').asHours()) +
'</h3><p> hrs</p><h3>' + Math.floor(moment.duration(((seconds % 86400) % 3600), 'seconds').asMinutes()) + '</h3><p> mins</p>';
return text;
} else if (seconds >= 3600) {
text = '<h1> / </h1><h3>' + Math.floor(moment.duration((seconds % 86400), 'seconds').asHours()) +
text = '<h3>' + Math.floor(moment.duration((seconds % 86400), 'seconds').asHours()) +
'</h3><p>hrs</p><h3>' + Math.floor(moment.duration(((seconds % 86400) % 3600), 'seconds').asMinutes()) + '</h3><p> mins</p>';
return text;
} else if (seconds >= 60) {
text = '<h1> / </h1><h3>' + Math.floor(moment.duration(((seconds % 86400) % 3600), 'seconds').asMinutes()) + '</h3><p> mins</p>';
text = '<h3>' + Math.floor(moment.duration(((seconds % 86400) % 3600), 'seconds').asMinutes()) + '</h3><p> mins</p>';
return text;
}
}

View file

@ -1,2 +0,0 @@
//fgnass.github.com/spin.js#v2.0.1
!function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define(b):a.Spinner=b()}(this,function(){"use strict";function a(a,b){var c,d=document.createElement(a||"div");for(c in b)d[c]=b[c];return d}function b(a){for(var b=1,c=arguments.length;c>b;b++)a.appendChild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-"),f=.01+c/d*100,g=Math.max(1-(1-a)/b*(100-f),a),h=j.substring(0,j.indexOf("Animation")).toLowerCase(),i=h&&"-"+h+"-"||"";return l[e]||(m.insertRule("@"+i+"keyframes "+e+"{0%{opacity:"+g+"}"+f+"%{opacity:"+a+"}"+(f+.01)+"%{opacity:1}"+(f+b)%100+"%{opacity:"+a+"}100%{opacity:"+g+"}}",m.cssRules.length),l[e]=1),e}function d(a,b){var c,d,e=a.style;for(b=b.charAt(0).toUpperCase()+b.slice(1),d=0;d<k.length;d++)if(c=k[d]+b,void 0!==e[c])return c;return void 0!==e[b]?b:void 0}function e(a,b){for(var c in b)a.style[d(a,c)||c]=b[c];return a}function f(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)void 0===a[d]&&(a[d]=c[d])}return a}function g(a,b){return"string"==typeof a?a:a[b%a.length]}function h(a){this.opts=f(a||{},h.defaults,n)}function i(){function c(b,c){return a("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',c)}m.addRule(".spin-vml","behavior:url(#default#VML)"),h.prototype.lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{width:k,height:k})}function h(a,h,i){b(m,b(e(f(),{rotation:360/d.lines*a+"deg",left:~~h}),b(e(c("roundrect",{arcsize:d.corners}),{width:j,height:d.width,left:d.radius,top:-d.width>>1,filter:i}),c("fill",{color:g(d.color,a),opacity:d.opacity}),c("stroke",{opacity:0}))))}var i,j=d.length+d.width,k=2*j,l=2*-(d.width+d.length)+"px",m=e(f(),{position:"absolute",top:l,left:l});if(d.shadow)for(i=1;i<=d.lines;i++)h(i,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(i=1;i<=d.lines;i++)h(i);return b(a,m)},h.prototype.opacity=function(a,b,c,d){var e=a.firstChild;d=d.shadow&&d.lines||0,e&&b+d<e.childNodes.length&&(e=e.childNodes[b+d],e=e&&e.firstChild,e=e&&e.firstChild,e&&(e.opacity=c))}}var j,k=["webkit","Moz","ms","O"],l={},m=function(){var c=a("style",{type:"text/css"});return b(document.getElementsByTagName("head")[0],c),c.sheet||c.styleSheet}(),n={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"};h.defaults={},f(h.prototype,{spin:function(b){this.stop();{var c=this,d=c.opts,f=c.el=e(a(0,{className:d.className}),{position:d.position,width:0,zIndex:d.zIndex});d.radius+d.length+d.width}if(e(f,{left:d.left,top:d.top}),b&&b.insertBefore(f,b.firstChild||null),f.setAttribute("role","progressbar"),c.lines(f,c.opts),!j){var g,h=0,i=(d.lines-1)*(1-d.direction)/2,k=d.fps,l=k/d.speed,m=(1-d.opacity)/(l*d.trail/100),n=l/d.lines;!function o(){h++;for(var a=0;a<d.lines;a++)g=Math.max(1-(h+(d.lines-a)*n)%l*m,d.opacity),c.opacity(f,a*d.direction+i,g,d);c.timeout=c.el&&setTimeout(o,~~(1e3/k))}()}return c},stop:function(){var a=this.el;return a&&(clearTimeout(this.timeout),a.parentNode&&a.parentNode.removeChild(a),this.el=void 0),this},lines:function(d,f){function h(b,c){return e(a(),{position:"absolute",width:f.length+f.width+"px",height:f.width+"px",background:b,boxShadow:c,transformOrigin:"left",transform:"rotate("+~~(360/f.lines*k+f.rotate)+"deg) translate("+f.radius+"px,0)",borderRadius:(f.corners*f.width>>1)+"px"})}for(var i,k=0,l=(f.lines-1)*(1-f.direction)/2;k<f.lines;k++)i=e(a(),{position:"absolute",top:1+~(f.width/2)+"px",transform:f.hwaccel?"translate3d(0,0,0)":"",opacity:f.opacity,animation:j&&c(f.opacity,f.trail,l+k*f.direction,f.lines)+" "+1/f.speed+"s linear infinite"}),f.shadow&&b(i,e(h("#000","0 0 4px #000"),{top:"2px"})),b(d,b(i,h(g(f.color,k),"0 0 1px rgba(0,0,0,.1)")));return d},opacity:function(a,b,c){b<a.childNodes.length&&(a.childNodes[b].style.opacity=c)}});var o=e(a("group"),{behavior:"url(#default#VML)"});return!d(o,"transform")&&o.adj?i():j=d(o,"animation"),h});

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],