mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 02:09:23 +02:00
CSS trick to remove grid view
This commit is contained in:
parent
68a2f92102
commit
4ca86c15ac
27 changed files with 123 additions and 34 deletions
|
@ -245,11 +245,14 @@ http://www.consulenza-web.com/2012/01/mediatable-jquery-plugin/
|
|||
// Columns Initialization Loop.
|
||||
wdg.$table.find('thead th').each(function(i){ __thInit.call( this, i, wdg ); });
|
||||
|
||||
wdg.$menu.$list.append(wdg.$menu.$footer);
|
||||
|
||||
wdg.$menu.$footer.bind('click',function(){
|
||||
__reset.call(_this);
|
||||
});
|
||||
if (wdg.$menu.$list !== undefined) {
|
||||
wdg.$menu.$list.append(wdg.$menu.$footer);
|
||||
}
|
||||
if (wdg.$menu.$footer !== undefined) {
|
||||
wdg.$menu.$footer.bind('click',function(){
|
||||
__reset.call(_this);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -317,12 +320,13 @@ http://www.consulenza-web.com/2012/01/mediatable-jquery-plugin/
|
|||
$.fn.mediaTable = function() {
|
||||
|
||||
var cfg = false;
|
||||
|
||||
var hasMenu = !$(this).hasClass('disablegv');
|
||||
|
||||
// Default configuration block
|
||||
if ( !arguments.length || $.isPlainObject(arguments[0]) ) cfg = $.extend({},{
|
||||
|
||||
// Teach the widget to create a toggle menu to declare column's visibility
|
||||
menu: true,
|
||||
menu: hasMenu,
|
||||
menuTitle: 'Columns',
|
||||
menuReset: 'Reset',
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue