diff --git a/application/views/satellite/edit.php b/application/views/satellite/edit.php
index 8c2807c6e..cb915e552 100644
--- a/application/views/satellite/edit.php
+++ b/application/views/satellite/edit.php
@@ -43,13 +43,13 @@
- | name ?> |
+ name) ?> |
uplink_mode ?> |
uplink_freq ?> |
downlink_mode ?> |
downlink_freq ?> |
|
- |
+ |
diff --git a/application/views/satellite/index.php b/application/views/satellite/index.php
index 83afce880..6eaaabba9 100644
--- a/application/views/satellite/index.php
+++ b/application/views/satellite/index.php
@@ -29,8 +29,8 @@
- | satname ?> |
- exportname ?> |
+ satname) ?> |
+ exportname) ?> |
'.$sat->orbit.'';
?>
- modename ?> |
+ modename ?? '') ?> |
|
- |
+ |
diff --git a/assets/js/sections/satellite.js b/assets/js/sections/satellite.js
index c071c1f92..4723dae2a 100644
--- a/assets/js/sections/satellite.js
+++ b/assets/js/sections/satellite.js
@@ -15,11 +15,22 @@ $(document).ready(function () {
}
});
+ $(document).on('click','.deleteSatmode', function (e) {
+ deleteSatmode(e.currentTarget.id,e.currentTarget.attributes.infotext.value);
+ });
+
$(document).on('click','.editSatmode', function (e) {
editSatmode(e.currentTarget.id);
});
});
+ function sanit(text) {
+ out = text.replace("\\"," ");
+ out = text.replace("\"","'");
+ return $("").text(out).html();
+ }
+
+
function createSatelliteDialog() {
$.ajax({
url: base_url + 'index.php/satellite/create',
@@ -205,18 +216,18 @@ function restoreLine(id) {
.removeClass('bg-danger');
$(".satmode_" + id).find("#cancelButton").replaceWith(
- '' + '' + ' | '
+ '' + '' + ' | '
);
$(".satmode_" + id).find("#saveButton").replaceWith(
- '' + '' + ' | '
+ '' + '' + ' | '
);
}
-function deleteSatmode(id) {
+function deleteSatmode(id, satmode) {
BootstrapDialog.confirm({
title: lang_general_word_danger,
- message: 'Do you really want to delete this mode?',
+ message: 'Do you really want to delete the mode ' + satmode +'?',
type: BootstrapDialog.TYPE_DANGER,
closable: true,
draggable: true,
@@ -293,7 +304,7 @@ function addSatMode() {
.attr('contenteditable', 'false')
.removeClass('bg-danger');
tbl_row.find("#cancelButton").replaceWith(
- '' + ' | '
+ '' + ' | '
);
tbl_row.find("#saveButton").replaceWith(