diff --git a/app/conference_centers/conference_center_edit.php b/app/conference_centers/conference_center_edit.php index d87e2afd1d..b11f33e15d 100644 --- a/app/conference_centers/conference_center_edit.php +++ b/app/conference_centers/conference_center_edit.php @@ -422,8 +422,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " tb.value=obj.options[obj.selectedIndex].value;\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=$('
').html('⨞').text();\n"; echo " tbb.objs=[obj,tb,tbb];\n"; echo " tbb.onclick=function(){ Replace(this.objs); }\n"; echo " obj.parentNode.insertBefore(tb,obj);\n"; diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index 9a78f38b3b..8be4b9f72e 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -365,8 +365,9 @@ require_once "resources/require.php"; 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=$("
").html('⨞').text(); tbb.objs=[obj,tb,tbb]; tbb.onclick=function(){ replace_param(this.objs); } obj.parentNode.insertBefore(tb,obj); diff --git a/app/dialplan/dialplan_add.php b/app/dialplan/dialplan_add.php index 8e1d94350a..2d5e9e0026 100644 --- a/app/dialplan/dialplan_add.php +++ b/app/dialplan/dialplan_add.php @@ -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=$("
").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=$("
").html('⨞').text(); tbb.objs=[obj,tb,tbb]; tbb.onclick=function(){ Replace_condition_field_2(this.objs); } obj.parentNode.insertBefore(tb,obj); diff --git a/app/dialplan/dialplan_detail_edit.php b/app/dialplan/dialplan_detail_edit.php index b57f418da0..0c612ed69c 100644 --- a/app/dialplan/dialplan_detail_edit.php +++ b/app/dialplan/dialplan_detail_edit.php @@ -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=$("
").html('⨞').text(); tbb.objs=[obj,tb,tbb]; tbb.onclick=function(){ replace_param(this.objs); } obj.parentNode.insertBefore(tb,obj); diff --git a/app/dialplan/dialplan_edit.php b/app/dialplan/dialplan_edit.php index 55f07dd0ae..a1a48c0740 100644 --- a/app/dialplan/dialplan_edit.php +++ b/app/dialplan/dialplan_edit.php @@ -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=$("
").html('⨞').text(); tbb.objs=[obj,tb,tbb]; tbb.onclick=function(){ replace_param(this.objs); } obj.parentNode.insertBefore(tb,obj); diff --git a/app/dialplan_inbound/dialplan_inbound_add.php b/app/dialplan_inbound/dialplan_inbound_add.php index aadc84319b..1487986a2a 100644 --- a/app/dialplan_inbound/dialplan_inbound_add.php +++ b/app/dialplan_inbound/dialplan_inbound_add.php @@ -713,8 +713,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { 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=$("
").html('⨞').text(); tbb.objs=[obj,tb,tbb]; tbb.onclick=function(){ Replace_condition_field_1(this.objs); } obj.parentNode.insertBefore(tb,obj); @@ -794,8 +795,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { 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=$("
").html('⨞').text(); tbb.objs=[obj,tb,tbb]; tbb.onclick=function(){ Replace_condition_field_2(this.objs); } obj.parentNode.insertBefore(tb,obj); diff --git a/app/dialplan_outbound/dialplan_outbound_add.php b/app/dialplan_outbound/dialplan_outbound_add.php index aeff8c25a6..7bf02b1f99 100644 --- a/app/dialplan_outbound/dialplan_outbound_add.php +++ b/app/dialplan_outbound/dialplan_outbound_add.php @@ -598,8 +598,9 @@ function type_onchange(dialplan_detail_type) { echo " tb.value=obj.options[obj.selectedIndex].value;\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=$('
').html('⨞').text();\n"; echo " tbb.objs=[obj,tb,tbb];\n"; echo " tbb.onclick=function(){ Replace(this.objs); }\n"; echo " obj.parentNode.insertBefore(tb,obj);\n"; diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index 54f57d6248..f20f048f7c 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -1324,8 +1324,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { document.getElementById('btn_select_to_input_device_mac_address').style.visibility = 'hidden'; tbb=document.createElement('INPUT'); tbb.setAttribute('class', 'btn'); + tbb.setAttribute('style', 'margin-left: 4px;'); tbb.type='button'; - tbb.value='⨞'; + tbb.value=$("
").html('⨞').text(); tbb.objs=[obj,tb,tbb]; tbb.onclick=function(){ replace_device_mac_address(this.objs); } obj.parentNode.insertBefore(tb,obj); diff --git a/app/ivr_menu/ivr_menu_edit.php b/app/ivr_menu/ivr_menu_edit.php index 03cdab7b65..29df06d37b 100644 --- a/app/ivr_menu/ivr_menu_edit.php +++ b/app/ivr_menu/ivr_menu_edit.php @@ -432,8 +432,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { echo " tb.value=obj.options[obj.selectedIndex].value;\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=$('
').html('⨞').text();\n"; echo " tbb.objs=[obj,tb,tbb];\n"; echo " tbb.onclick=function(){ Replace(this.objs); }\n"; echo " obj.parentNode.insertBefore(tb,obj);\n"; diff --git a/resources/switch.php b/resources/switch.php index b819b16260..c831ca6342 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -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=$('
').html('⨞').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";