File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ function init(Survey) {
22 var widget = {
33 className : "iradio_square-blue" ,
44 name : "icheck" ,
5- isFit : function ( question ) { var t = question . getType ( ) ; return t === 'radiogroup' || t === 'checkbox' || t === 'matrix' ; } ,
5+ isFit : function ( question ) {
6+ if ( typeof iCheck == undefined && typeof _iCheck == undefined ) return false ;
7+ var t = question . getType ( ) ; return t === 'radiogroup' || t === 'checkbox' || t === 'matrix' ;
8+ } ,
69 isDefaultRender : true ,
710 afterRender : function ( question , el ) {
811 var rootWidget = this ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ function init(Survey) {
88 numericPrefix : '$' ,
99 numericPlaceholder : '0' ,
1010 isFit : function ( question ) {
11+ if ( typeof Inputmask == undefined ) return false ;
1112 if ( question . getType ( ) == "multipletext" ) return true ;
1213 return question . getType ( ) == "text" && ( question . inputMask != "none" || question . inputFormat ) ;
1314 } ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ function init(Survey) {
55 htmlTemplate : "<select style='width: 100%;'></select>" ,
66 isFit : function ( question ) {
77 if ( widget . activatedBy == "property" ) return question [ "renderAs" ] === 'select2' && question . getType ( ) === 'dropdown' ;
8- if ( widget . activatedBy == "type" ) return question . getType ( ) === 'dropdown' ;
8+ if ( widget . activatedBy == "type" ) return typeof Select2 !== undefined && question . getType ( ) === 'dropdown' ;
99 if ( widget . activatedBy == "customtype" ) return question . getType ( ) === 'select2' ;
1010 return false ;
1111 } ,
You can’t perform that action at this time.
0 commit comments