diff --git a/admin/html.php b/admin/html.php index c2b38eb84c6..5e8d32a7058 100644 --- a/admin/html.php +++ b/admin/html.php @@ -462,15 +462,13 @@ { $surveysummary .= "gTview("Printable and scannable Version of Survey")."\" >" - . "".$clang->gT("Printable and scannable Version of Survey").""; + . " title=\"".$clang->gTview("Printable and Scanable Version of Survey")."\" >" + . "".$clang->gT("Printable and Scanable Version of Survey").""; } else { - $surveysummary .= "gTview("Printable and scannable Version of Survey")."\" >" - . "".$clang->gT("Printable and scannable Version of Survey")."\n"; + $surveysummary .= "gTview("Printable and Scanable Version of Survey")."\" >" + . "".$clang->gT("Printable and Scanable Version of Survey")."\n"; $tmp_survlangs = GetAdditionalLanguagesFromSurveyID($surveyid); $baselang = GetBaseLanguageFromSurveyID($surveyid); @@ -478,16 +476,15 @@ rsort($tmp_survlangs); // Test Survey Language Selection Popup - $surveysummary .="
"; + $surveysummary .="
".$clang->gT("Please select a language:")."
    "; foreach ($tmp_survlangs as $tmp_lang) { - $surveysummary .= "
"; + $surveysummary .= "
  • ".getLanguageNameFromCode($tmp_lang,false)."
  • "; } - $surveysummary .= "
    ".$clang->gT("Please select a language:")."
    ".getLanguageNameFromCode($tmp_lang,false)."
    ".$clang->gT("Cancel")."
    "; - - $surveysummary .= "\n"; + $surveysummary .= ""; } + if (count(GetAdditionalLanguagesFromSurveyID($surveyid)) == 0) { diff --git a/admin/scripts/admin_core.js b/admin/scripts/admin_core.js index 393c699f586..0f966705dde 100644 --- a/admin/scripts/admin_core.js +++ b/admin/scripts/admin_core.js @@ -107,6 +107,35 @@ $(document).ready(function(){ }} }); + $('#doprintablescanable').qtip({ + content:{ + text:$('#doprintablescanablelangpopup') + }, + style: { name: 'cream', + tip:true, + color:'#111111', + border: { + width: 1, + radius: 5, + color: '#EADF95'} + }, + position: { adjust: { + screen: true, scroll:true }, + corner: { + target: 'bottomMiddle', + tooltip: 'topMiddle'} + }, + show: {effect: { length:50}, + when: { + event:'click' + }}, + hide: {fixed:true, + when: { + event:'unfocus' + }} + }); + + $('#doprintable').qtip({ content:{ text:$('#doprintablelangpopup')