Skip to content

Commit

Permalink
Dev: fixed issue : do not add input-group-addon on editorLink for sub…
Browse files Browse the repository at this point in the history
…questions and answers
  • Loading branch information
Shnoulle committed Feb 8, 2016
1 parent 302bede commit 132bf76
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions application/helpers/admin/htmleditor_helper.php
Expand Up @@ -183,10 +183,14 @@ function getPopupEditor($fieldtype,$fieldname,$fieldtext, $surveyID=null,$gID=nu
$fieldtype == 'addlabel')
{
$imgopts = "width='16' height='16'";
$class="editorLink";
}
else
{
$class="editorLink input-group-addon";
}

$htmlcode .= ""
. "<a href=\"javascript:start_popup_editor('".$fieldname."','".addslashes(htmlspecialchars_decode($fieldtext,ENT_QUOTES))."','".$surveyID."','".$gID."','".$qID."','".$fieldtype."','".$action."')\" id='".$fieldname."_ctrl' class='editorLink input-group-addon'>\n"
. "<a href=\"javascript:start_popup_editor('".$fieldname."','".addslashes(htmlspecialchars_decode($fieldtext,ENT_QUOTES))."','".$surveyID."','".$gID."','".$qID."','".$fieldtype."','".$action."')\" id='".$fieldname."_ctrl' class='{$class}'>\n"
. "\t<span class='glyphicon glyphicon-pencil btneditanswerena' id='".$fieldname."_popupctrlena' data-toggle='tooltip' data-placement='bottom' title='".gT("Start HTML editor in a popup window")."'></span>"
. "\t<span class='glyphicon glyphicon-pencil btneditanswerdis' id='".$fieldname."_popupctrldis' style='display:none' ></span>"
. "</a>\n";
Expand Down

0 comments on commit 132bf76

Please sign in to comment.