Skip to content

Commit

Permalink
Fixes #4171 - checkbox visibility issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed May 18, 2020
1 parent 41056cb commit 80c5bd7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e107_handlers/form_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3996,7 +3996,7 @@ function columnSelector($columnsArray, $columnsDefault = array(), $id = 'column_
<ul class="list-group dropdown-menu col-selection e-noclick" role="menu" aria-labelledby="dLabel">
<li class="list-group-item "><h5 class="list-group-item-heading">'.LAN_EFORM_009.'</h5></li>
<li class="list-group-item">
<li class="list-group-item col-selection-list">
<ul class="nav scroll-menu" >';

unset($columnsArray['options'], $columnsArray['checkboxes']);
Expand Down
5 changes: 4 additions & 1 deletion e107_themes/bootstrap3/admin_style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1115,11 +1115,14 @@ ul.col-selection { padding:5px; text-align:left; background-colo
ul.col-selection { text-align:left; overflow:visible; z-index:101; background-color: rgb(23, 23, 23); }
ul.col-selection > li a { border-top: 1px solid rgb(51, 51, 51); border-bottom: 1px solid rgb(32, 32, 32); }
ul.col-selection > li a { padding: 3px 0 0 5px; color: rgb(153, 153, 153); }
ul.col-selection > li a label { padding-left:0; display:block; line-height:25px; }
ul.col-selection > li a label { padding-left:20px; display:block; /*line-height:25px;*/ }
ul.col-selection > li a:hover { color: #FFF; background-image: linear-gradient(to bottom, #08C, #0077B3);}
ul.col-selection { background-color: rgb(39, 39, 39);}
ul.col-selection ul.nav > li { padding:0 }
ul.scroll-menu { max-height:350px; overflow:auto; }
ul.col-selection li.col-selection-list { padding: 5px; }
ul.col-selection input { opacity:0; }
ul.col-selection label.active:before { font-family:FontAwesome; margin-left:-20px ; margin-right:6px ; content: '\f00c'; color: #51a351; position:relative; }


.nav ul li ul.dropdown-menu { border-left:1px solid rgb(51, 51, 51); background-color: rgb(39, 39, 39); }
Expand Down
15 changes: 15 additions & 0 deletions e107_web/js/core/admin.jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,21 @@ $(document).ready(function()
// $(selector).removeAttr("checked");
}
});


$("ul.col-selection input[type='checkbox']").click(function(evt){

if(this.checked)
{
$(this).closest("label").addClass( "active", 0 );
// $(this).closest("tr.even").switchClass( "even", "highlight-even", 50 );
}
else
{
$(this).closest("label").removeClass( "active", 0 );
}

});

// highlight checked row
$(".adminlist input[type='checkbox']").click(function(evt){
Expand Down

0 comments on commit 80c5bd7

Please sign in to comment.