Skip to content

Commit

Permalink
NOAUTH
Browse files Browse the repository at this point in the history
  • Loading branch information
smartinkc committed Mar 13, 2018
1 parent 4628ad7 commit 831226c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Multilingual.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
class Multilingual extends AbstractExternalModule
{
function redcap_survey_page($project_id, $record, $instrument){
echo '<script type="text/javascript">' . str_replace('REDCAP_AJAX_URL', $this->getUrl("index.php"), file_get_contents($this->getModulePath() . 'js/multilingual_survey.js')) . '</script>';
echo '<script type="text/javascript">' . str_replace('REDCAP_AJAX_URL', $this->getUrl("index.php", true), file_get_contents($this->getModulePath() . 'js/multilingual_survey.js')) . '</script>';
echo '<link rel="stylesheet" type="text/css" href="' . $this->getUrl('css/multilingual.css') . '">';
}

function redcap_survey_complete($project_id, $record, $instrument){
echo '<script type="text/javascript">' . str_replace('REDCAP_AJAX_URL', $this->getUrl("index.php"), file_get_contents($this->getModulePath() . 'js/multilingual_survey_complete.js')) . '</script>';
echo '<script type="text/javascript">' . str_replace('REDCAP_AJAX_URL', $this->getUrl("index.php", true), file_get_contents($this->getModulePath() . 'js/multilingual_survey_complete.js')) . '</script>';
}

function redcap_data_entry_form($project_id, $record, $instrument){
Expand Down
2 changes: 1 addition & 1 deletion js/multilingual_survey.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function(){
//load languages
var ajax_url = 'REDCAP_AJAX_URL&NOAUTH';
var ajax_url = 'REDCAP_AJAX_URL';
var project_id = getVariable('pid');
//var languages = {1: 'en', 2: 'es', 3: 'fr'};
var languages = {1: 'en', 2: 'es'};
Expand Down
2 changes: 1 addition & 1 deletion js/multilingual_survey_complete.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(){
var ajax_url = 'REDCAP_AJAX_URL&NOAUTH';
var ajax_url = 'REDCAP_AJAX_URL';
var translations = {};
var languages = {};
var lang = getCookie('p1000Lang');
Expand Down

0 comments on commit 831226c

Please sign in to comment.