File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ function updateFunderInputs() {
102102 '<select id=' + selectId + ' class="form-control add-resource select2" tabindex="-1" aria-hidden="true">' ) ;
103103 $ ( "#" + selectId ) . select2 ( {
104104 theme : "classic" ,
105- tags : $ ( funderInput ) . attr ( ' data- cvoc-allowfreetext' ) ,
105+ tags : $ ( funderInput ) . data ( " cvoc-allowfreetext" ) ,
106106 delay : 500 ,
107107 templateResult : function ( item ) {
108108 // No need to template the searching text
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ function updatePeopleInputs() {
113113 var orcidSearchUrl = orcidBaseUrl . replace ( "https://" , "https://pub." ) + "v3.0/expanded-search" ;
114114 $ ( "#" + selectId ) . select2 ( {
115115 theme : "classic" ,
116- tags : $ ( personInput ) . attr ( ' data- cvoc-allowfreetext' ) ,
116+ tags : $ ( personInput ) . data ( " cvoc-allowfreetext" ) ,
117117 delay : 500 ,
118118 templateResult : function ( item ) {
119119 // No need to template the searching text
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ function updateRorInputs() {
123123 '<select id=' + selectId + ' class="form-control add-resource select2" tabindex="0" >' ) ;
124124 $ ( "#" + selectId ) . select2 ( {
125125 theme : "classic" ,
126- tags : $ ( rorInput ) . attr ( ' data- cvoc-allowfreetext' ) ,
126+ tags : $ ( rorInput ) . data ( " cvoc-allowfreetext" ) ,
127127 delay : 500 ,
128128 templateResult : function ( item ) {
129129 // No need to template the searching text
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ function updateSkosmosInputs() {
112112 let managedFields = JSON . parse ( $ ( skosmosInput ) . attr ( 'data-cvoc-managedfields' ) ) ;
113113 let parentField = $ ( skosmosInput ) . attr ( 'data-cvoc-parent' ) ;
114114 let termParentUri = $ ( skosmosInput ) . attr ( 'data-cvoc-filter' ) ;
115- let allowFreeText = $ ( skosmosInput ) . attr ( ' data- cvoc-allowfreetext' ) ;
115+ let allowFreeText = $ ( skosmosInput ) . data ( " cvoc-allowfreetext" ) ;
116116 let placeholder = skosmosInput . hasAttribute ( "data-cvoc-placeholder" ) ? $ ( skosmosInput ) . attr ( 'data-cvoc-placeholder' ) : "Select a term" ;
117117 let selectId = "skosmosAddSelect_" + num ;
118118 //Pick the first entry as the default to start with when there is more than one vocab
You can’t perform that action at this time.
0 commit comments