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 abcc96f0ad
commit 16105f7d3a
10 changed files with 24 additions and 12 deletions

View File

@@ -299,8 +299,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
tb.value=obj.options[obj.selectedIndex].value;
tbb=document.createElement('INPUT');
tbb.setAttribute('class', 'btn');
tbb.setAttribute('style', 'margin-left: 4px;');
tbb.type='button';
tbb.value='⨞';
tbb.value=$("<div />").html('&#10782;').text();
tbb.objs=[obj,tb,tbb];
tbb.onclick=function(){ replace_param(this.objs); }
obj.parentNode.insertBefore(tb,obj);