Skip to content

Commit

Permalink
Dev: Move noscript tag into replacements helper
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Sep 6, 2016
1 parent 6d98e16 commit 1af0068
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 19 deletions.
2 changes: 1 addition & 1 deletion application/helpers/replacements_helper.php
Expand Up @@ -688,7 +688,7 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
$coreReplacements['ASSESSMENTS'] = $assessmenthtml;
$coreReplacements['ASSESSMENT_CURRENT_TOTAL'] = $_assessment_current_total;
$coreReplacements['ASSESSMENT_HEADING'] = gT("Your assessment");
$coreReplacements['CHECKJAVASCRIPT'] = "<p class='alert alert-danger warningjs'>".gT("Caution: JavaScript execution is disabled in your browser. You may not be able to answer all questions in this survey. Please, verify your browser parameters.")."</p>";
$coreReplacements['CHECKJAVASCRIPT'] = "<noscript id='checkjavascript'><p class='alert alert-danger warningjs'>".gT("Caution: JavaScript execution is disabled in your browser. You may not be able to answer all questions in this survey. Please, verify your browser parameters.")."</p></noscript>";
$coreReplacements['CLEARALL'] = $_clearall;
$coreReplacements['CLEARALL_LINKS'] = $_clearalllinks;
$coreReplacements['CLOSEWINDOW'] = ''; // Obsolete tag - keep this line for compatibility reaons
Expand Down
4 changes: 1 addition & 3 deletions templates/default/views/survey.pstpl
@@ -1,4 +1,2 @@
<!-- Survey Description survey.pstpl -->
<noscript role="alert" id="checkjavascript">
{CHECKJAVASCRIPT}
</noscript>
{CHECKJAVASCRIPT}
4 changes: 1 addition & 3 deletions templates/default/views/surveylist.pstpl
@@ -1,7 +1,5 @@

<noscript class="alert alert-danger" role="alert" id="checkjavascript">
{CHECKJAVASCRIPT}
</noscript>
{CHECKJAVASCRIPT}

<div class="row" id="surveys-list-container">
<div class="jumbotron" id="surveys-list-jumbotron">
Expand Down
4 changes: 1 addition & 3 deletions templates/news_paper/views/survey.pstpl
@@ -1,4 +1,2 @@
<!-- Survey Description survey.pstpl -->
<noscript role="alert" id="checkjavascript">
{CHECKJAVASCRIPT}
</noscript>
{CHECKJAVASCRIPT}
4 changes: 1 addition & 3 deletions templates/news_paper/views/surveylist.pstpl
@@ -1,7 +1,5 @@

<noscript class="alert alert-danger" role="alert" id="checkjavascript">
{CHECKJAVASCRIPT}
</noscript>
{CHECKJAVASCRIPT}

<div class="row" id="surveys-list-container">
<div class="jumbotron" id="surveys-list-jumbotron">
Expand Down
4 changes: 1 addition & 3 deletions templates/ubuntu_orange/views/survey.pstpl
@@ -1,4 +1,2 @@
<!-- Survey Description survey.pstpl -->
<noscript role="alert" id="checkjavascript">
{CHECKJAVASCRIPT}
</noscript>
{CHECKJAVASCRIPT}
4 changes: 1 addition & 3 deletions templates/ubuntu_orange/views/surveylist.pstpl
@@ -1,7 +1,5 @@

<noscript class="alert alert-danger" role="alert" id="checkjavascript">
{CHECKJAVASCRIPT}
</noscript>
{CHECKJAVASCRIPT}

<div class="row" id="surveys-list-container">
<div class="jumbotron" id="surveys-list-jumbotron">
Expand Down

0 comments on commit 1af0068

Please sign in to comment.