-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hide 'primary' column on bp-two-factor table.
See #3344.
- Loading branch information
1 parent
e630c04
commit 52752f9
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
(function($){ | ||
$(document).ready(function(){ | ||
// Figure out the position of the 'col-primary' column. It doesn't have | ||
// the proper class in the table body. | ||
var col; | ||
$('.two-factor-methods-table thead th').each(function( k, v ){ | ||
console.log(v) | ||
if ( $(v).hasClass('col-primary') ) { | ||
col = k; | ||
return false; | ||
} | ||
}); | ||
|
||
if ( col !== undefined ) { | ||
console.log('col: ' + col); | ||
$('.two-factor-methods-table tbody tr').each(function(){ | ||
var $thisRowChildren = $(this).children(); | ||
$thisRowChildren.eq(col).addClass('col-primary'); | ||
}); | ||
} | ||
|
||
}); | ||
})(jQuery); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5771,3 +5771,8 @@ p.private-membership-indicator { | |
} | ||
} | ||
} | ||
.two-factor-methods-table { | ||
.col-primary { | ||
display: none; | ||
} | ||
} |