Skip to content

Commit

Permalink
[BF] - Contact groups not appearing correctly in 4.8.0 interface - fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yannrobin authored and barryo committed Sep 11, 2018
1 parent ba9d98d commit 7b94632
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions public/js/900-oss-framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -754,3 +754,16 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, {
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
}
} );

//See https://github.com/harvesthq/chosen/issues/92 for:
function ossChosenFixWidth( obj, force ) {
if( ( force != undefined && force == true ) || obj.attr( 'chzn-fix-width' ) === '1' ) {
czn_id = "#" + obj.attr( "id" ) + "_chzn";
width = parseInt( obj.css( "width" ) );

if( $( czn_id ).length == 0)
czn_id = czn_id.replace( /\-/g, "_" );

$( czn_id ).css( "width", width + "px" );
}
}

0 comments on commit 7b94632

Please sign in to comment.