@@ -2089,18 +2089,20 @@ Evol.ViewMany.Bubbles = Evol.ViewMany.extend({
20892089 h += '<label>' + Evol . i18n . vizGroupBy + '</label>' +
20902090 '<div class="btn-group" data-toggle="buttons">' +
20912091 _ . map ( fs2 , function ( f , idx ) {
2092- return '<label class="btn btn-default' + ( idx === 0 ?' active' :'' ) + '" id="' + f . id + '">' +
2093- '<input type="radio" name="options"' + ( idx === 0 ?' checked' :'' ) + '> ' + f . label + '</label>' ;
2094- } ) . join ( '' ) +
2092+ if ( _ . isUndefined ( f . groupable ) || f . groupable ) {
2093+ return '<label class="btn btn-default' + ( idx === 0 ?' active' :'' ) + '" id="' + f . id + '">' +
2094+ '<input type="radio" name="options"' + ( idx === 0 ?' checked' :'' ) + '>' + f . label + '</label>' ;
2095+ }
2096+ } ) . join ( '' ) +
20952097 '</div>' ;
20962098 // --- Color ---
20972099 var fo = _ . map ( fs2 , function ( f , idx ) {
2098- return hOpt ( f . id , f . label , idx === 0 ) ;
2100+ return ( _ . isUndefined ( f . colorable ) || f . colorable ) ? hOpt ( f . id , f . label , idx === 0 ) : '' ;
20992101 } ) ;
21002102 h += '<label>' + Evol . i18n . vizColorBy + '</label><select class="form-control bubble-color">' + hOptNull + fo . join ( '' ) + '</select>' ;
21012103 // --- Size ---
21022104 fs2 = _ . filter ( fs2 , function ( f ) {
2103- return Evol . Dico . isNumberType ( f . type ) ;
2105+ return ( _ . isUndefined ( f . sizable ) || f . sizable ) ? Evol . Dico . isNumberType ( f . type ) : '' ;
21042106 } ) ;
21052107 fo = _ . map ( fs2 , function ( f , idx ) {
21062108 return hOpt ( f . id , f . label ) ;
@@ -4926,7 +4928,7 @@ return Backbone.View.extend({
49264928 addOK = false ;
49274929 }
49284930 editor . append ( h ) ;
4929- if ( fType == fts . date ) { // TODO add datepicker widget to build and uncomment this
4931+ if ( fType == fts . date ) {
49304932 editor . find ( '#value,#value2' ) . datepicker ( { dateFormat :this . dateFormat } ) ;
49314933 }
49324934 }
0 commit comments