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:
@@ -377,8 +377,9 @@ function changeToInput_condition_field_1(obj){
|
||||
document.getElementById('btn_select_to_input_condition_field_1').style.visibility = 'hidden';
|
||||
tbb=document.createElement('INPUT');
|
||||
tbb.setAttribute('class', 'btn');
|
||||
tbb.setAttribute('style', 'margin-left: 4px;');
|
||||
tbb.type='button';
|
||||
tbb.value='⨞';
|
||||
tbb.value=$("<div />").html('⨞').text();
|
||||
tbb.objs=[obj,tb,tbb];
|
||||
tbb.onclick=function(){ Replace_condition_field_1(this.objs); }
|
||||
obj.parentNode.insertBefore(tb,obj);
|
||||
@@ -471,8 +472,9 @@ function changeToInput_condition_field_2(obj){
|
||||
document.getElementById('btn_select_to_input_condition_field_2').style.visibility = 'hidden';
|
||||
tbb=document.createElement('INPUT');
|
||||
tbb.setAttribute('class', 'btn');
|
||||
tbb.setAttribute('style', 'margin-left: 4px;');
|
||||
tbb.type='button';
|
||||
tbb.value='<';
|
||||
tbb.value=$("<div />").html('⨞').text();
|
||||
tbb.objs=[obj,tb,tbb];
|
||||
tbb.onclick=function(){ Replace_condition_field_2(this.objs); }
|
||||
obj.parentNode.insertBefore(tb,obj);
|
||||
|
||||
@@ -295,8 +295,9 @@ function change_to_input(obj){
|
||||
document.getElementById('btn_select_to_input_dialplan_detail_type').style.visibility = 'hidden';
|
||||
tbb=document.createElement('INPUT');
|
||||
tbb.setAttribute('class', 'btn');
|
||||
tbb.setAttribute('style', 'margin-left: 4px;');
|
||||
tbb.type='button';
|
||||
tbb.value='⨞';
|
||||
tbb.value=$("<div />").html('⨞').text();
|
||||
tbb.objs=[obj,tb,tbb];
|
||||
tbb.onclick=function(){ replace_param(this.objs); }
|
||||
obj.parentNode.insertBefore(tb,obj);
|
||||
|
||||
@@ -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('⨞').text();
|
||||
tbb.objs=[obj,tb,tbb];
|
||||
tbb.onclick=function(){ replace_param(this.objs); }
|
||||
obj.parentNode.insertBefore(tb,obj);
|
||||
|
||||
Reference in New Issue
Block a user