mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +00:00
Begin rework of plugins list table. Props edward mindreantre. See #15318
git-svn-id: https://develop.svn.wordpress.org/trunk@16345 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -123,17 +123,22 @@ $(document).ready(function(){ adminMenu.init(); });
|
||||
// show/hide/save table columns
|
||||
columns = {
|
||||
init : function() {
|
||||
var that = this;
|
||||
$('.hide-column-tog', '#adv-settings').click( function() {
|
||||
var $t = $(this), column = $t.val();
|
||||
if ( $t.attr('checked') )
|
||||
that.checked(column);
|
||||
else
|
||||
that.unchecked(column);
|
||||
|
||||
this.toggleView( $('.hide-column-tog', '#adv-settings').attr('checked'), $('.hide-column-tog', '#adv-settings').val() );
|
||||
$('.column-name').css("width", "auto"); // Otherwise it only wants 50% column width...
|
||||
|
||||
$('.hide-column-tog', '#adv-settings').click( function() {
|
||||
columns.toggleView( $(this).attr('checked'), $(this).val() );
|
||||
columns.saveManageColumnsState();
|
||||
});
|
||||
},
|
||||
|
||||
toggleView : function(checked, column) {
|
||||
if ( checked )
|
||||
this.checked(column);
|
||||
else
|
||||
this.unchecked(column);
|
||||
},
|
||||
|
||||
saveManageColumnsState : function() {
|
||||
var hidden = this.hidden();
|
||||
|
||||
Reference in New Issue
Block a user