diff --git a/application/controllers/Radio.php b/application/controllers/Radio.php
index a5ab2c5bb..c0664b6cf 100644
--- a/application/controllers/Radio.php
+++ b/application/controllers/Radio.php
@@ -103,7 +103,7 @@ class Radio extends CI_Controller {
echo '
' . __("Default (click to release)") . '
';
}
}
- echo " " . __("Edit") . " ";
+ echo " " . __("Edit") . " ";
echo "id . "\" class=\"btn btn-sm btn-danger\"> " . __("Delete") . " ";
echo "";
}
@@ -116,16 +116,16 @@ class Radio extends CI_Controller {
}
public function saveCatUrl() {
- $url = xss_clean($this->input->post('caturl', true));
- $id = xss_clean($this->input->post('id', true));
+ $url = $this->input->post('caturl', true);
+ $id = $this->input->post('id', true);
$this->load->model('cat');
$this->cat->updateCatUrl($id,$url);
}
public function editCatUrl() {
$this->load->model('cat');
- $data['container'] = $this->cat->radio_status(xss_clean($this->input->post('id', true)))->row();
- $data['page_title'] = __("Edit container name");
+ $data['container'] = $this->cat->radio_status($this->input->post('id', true))->row();
+ $data['page_title'] = __("Edit CAT Settings");
$this->load->view('radio/edit', $data);
}
diff --git a/application/views/radio/edit.php b/application/views/radio/edit.php
index 86dd0c81e..bfdc91043 100644
--- a/application/views/radio/edit.php
+++ b/application/views/radio/edit.php
@@ -17,7 +17,7 @@
= __("CAT URL"); ?>
- = __("Called URL when a spot at DXCluster is clicked. Notice: The slash (/) and QRG is added automatically"); ?>
+ = sprintf(__("Called URL when a spot at DXCluster is clicked. Notice: The trailing slash (/) and QRG is added automatically. Default is %s"), "http://127.0.0.1:54321"); ?>
diff --git a/application/views/radio/index.php b/application/views/radio/index.php
index 83c31ad0b..e4f1533b3 100644
--- a/application/views/radio/index.php
+++ b/application/views/radio/index.php
@@ -1,3 +1,7 @@
+
+
diff --git a/assets/js/sections/radio.js b/assets/js/sections/radio.js
index 3db9d0d8c..47c356e50 100644
--- a/assets/js/sections/radio.js
+++ b/assets/js/sections/radio.js
@@ -23,11 +23,11 @@ function editCatUrlDialog(e) {
url: base_url + 'index.php/radio/editCatUrl',
type: 'post',
data: {
- id: e.currentTarget.id,
+ id: e.currentTarget.id.replace('edit_cat_settings_', '')
},
success: function (data) {
BootstrapDialog.show({
- title: 'Edit CAT Settings',
+ title: lang_edit_cat_settings,
size: BootstrapDialog.SIZE_NORMAL,
cssClass: 'options',
id: "CatUrlModal",
@@ -36,7 +36,7 @@ function editCatUrlDialog(e) {
onshown: function(dialog) {
},
buttons: [{
- label: 'Save',
+ label: lang_admin_save,
cssClass: 'btn-primary btn-sm saveContainerName',
action: function (dialogItself) {
saveCatUrl();