Input Type Switch Button: No interprets HTML entities code for left triangle (⨞) after switching element type once (wasn't being parsed as an HTML entity, but displayed literally).

This commit is contained in:
Nate Jones
2014-08-03 06:12:10 +00:00
parent c0209959a8
commit b3ef3894f8
10 changed files with 24 additions and 12 deletions

View File

@@ -407,8 +407,9 @@ function switch_select_destination($select_type, $select_label, $select_name, $s
echo " document.getElementById('btn_select_to_input_".$select_id."').style.visibility = 'hidden';\n";
echo " tbb=document.createElement('INPUT');\n";
echo " tbb.setAttribute('class', 'btn');\n";
echo " tbb.setAttribute('style', 'margin-left: 4px;');\n";
echo " tbb.type='button';\n";
echo " tbb.value='⨞';\n";
echo " tbb.value=$('<div />').html('&#10782;').text();\n";
echo " tbb.objs=[obj,tb,tbb];\n";
echo " tbb.onclick=function(){ Replace".$select_id."(this.objs); }\n";
echo " obj.parentNode.insertBefore(tb,obj);\n";