Skip to content

Commit

Permalink
Allow for sections to work. Show a warning for not finding the elemen…
Browse files Browse the repository at this point in the history
…ts, not an alert.
  • Loading branch information
denshade committed Jan 22, 2020
1 parent 4e61abb commit 1f0354d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImageMapClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function redcap_data_entry_form($project_id, $record, $instrument, $event
if (strpos($field_annotation, self::annotation) !== false) {
$fieldname = $field['field_name'];
$keyLabelCodeMap[$fieldname]['label'] = html_entity_decode($field['field_label']);
$keyLabelCodeMap[$fieldname]['script'] = "try{".str_replace(self::annotation . '=', "", $field_annotation).'}catch(e) {alert(e);}' ;
$keyLabelCodeMap[$fieldname]['script'] = "try{".str_replace(self::annotation . '=', "", $field_annotation).'}catch(e) {console.warn(e);}' ;
}
}

Expand Down

0 comments on commit 1f0354d

Please sign in to comment.