File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
tests/pages/_includes/widgets/list-view Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 253253 </ div >
254254</ div >
255255< script >
256- // Row Checkbox Selection
257256 $ ( document ) . ready ( function ( ) {
257+ // Row Checkbox Selection
258258 $ ( "input[type='checkbox']" ) . change ( function ( e ) {
259259 if ( $ ( this ) . is ( ":checked" ) ) {
260260 $ ( this ) . closest ( '.list-group-item' ) . addClass ( "active" ) ;
261261 } else {
262262 $ ( this ) . closest ( '.list-group-item' ) . removeClass ( "active" ) ;
263263 }
264264 } ) ;
265+ // toggle dropdown menu
266+ $ ( '.list-view-pf-actions' ) . on ( 'show.bs.dropdown' , function ( ) {
267+ var $this = $ ( this ) ;
268+ var $dropdown = $this . find ( '.dropdown' ) ;
269+ var space = $ ( window ) . height ( ) - $dropdown [ 0 ] . getBoundingClientRect ( ) . top - $this . find ( '.dropdown-menu' ) . outerHeight ( true ) ;
270+ $dropdown . toggleClass ( 'dropup' , space < 10 ) ;
271+ } ) ;
265272 } ) ;
266273</ script >
You can’t perform that action at this time.
0 commit comments