Merge branch '823-alert-action-fields-infinite-wait-dev' into 'develop'

Changed bad jquery get call in alert actions and alerts snmp.

See merge request !441
This commit is contained in:
vgilc 2017-05-08 17:30:02 +02:00
commit fd6ff530c7
2 changed files with 3 additions and 5 deletions

View File

@ -265,7 +265,7 @@ $(document).ready (function () {
name: "id",
value: this.value});
jQuery.get (<?php echo "'" . ui_get_full_url("ajax.php", false, false, false) . "'"; ?>,
jQuery.post (<?php echo "'" . ui_get_full_url("ajax.php", false, false, false) . "'"; ?>,
values,
function (data, status) {
original_command = js_html_entity_decode (data["command"]);
@ -274,6 +274,7 @@ $(document).ready (function () {
render_command_description(command_description);
var max_fields = parseInt('<?php echo $config["max_macro_fields"]; ?>');
for (i = 1; i <= max_fields; i++) {
var old_value = '';
var old_recovery_value = '';

View File

@ -1394,10 +1394,7 @@ $(document).ready (function () {
name: "get_recovery_fields",
value: "0"
});
jQuery.get (
<?php
echo "'" . ui_get_full_url("ajax.php", false, false, false) . "'";
?>,
jQuery.post (<?php echo "'" . ui_get_full_url("ajax.php", false, false, false) . "'"; ?>,
values,
function (data, status) {
var max_fields = parseInt('<?php echo $config["max_macro_fields"]; ?>');