Merge pull request #3661 from laf/issue-3657

Fixed ajax_* calls for use with base_url
This commit is contained in:
Neil Lathwood
2016-06-16 00:51:51 +01:00
committed by GitHub
7 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ $tmp_output .= '
range: "' . mres($_POST['range']) . '"
};
},
url: "/ajax_table.php",
url: "ajax_table.php",
});
</script>
+1 -1
View File
@@ -29,6 +29,6 @@ $pagetitle[] = 'Customers';
id: "customers",
};
},
url: "/ajax_table.php"
url: "ajax_table.php"
});
</script>
+2 -2
View File
@@ -67,7 +67,7 @@
event.preventDefault();
$.ajax({
type: "POST",
url: "/ajax_form.php",
url: "ajax_form.php",
data: $('form#components').serialize(),
dataType: "json",
success: function(data){
@@ -97,6 +97,6 @@
device_id: "<?php echo $device['device_id']; ?>"
};
},
url: "/ajax_table.php"
url: "ajax_table.php"
});
</script>
+2 -2
View File
@@ -40,7 +40,7 @@
device_id: <?php echo $device['device_id']; ?>,
};
},
url: "/ajax_table.php",
url: "ajax_table.php",
formatters: {
"perc_update": function(column,row) {
return "<div class='form-group'><input type='text' class='form-control input-sm storage' data-device_id='<?php echo $device['device_id']; ?>' data-storage_id='"+row.storage_id+"' value='"+row.storage_perc_warn+"'></div>";
@@ -58,7 +58,7 @@
var $this = $(this);
$.ajax({
type: 'POST',
url: '/ajax_form.php',
url: 'ajax_form.php',
data: {type: "storage-update", device_id: device_id, data: data, storage_id: storage_id},
dataType: "json",
success: function (data) {
+2 -2
View File
@@ -61,7 +61,7 @@ if (is_module_enabled('poller', 'mib')) {
device_id: '<?php echo htmlspecialchars($device['device_id']); ?>',
};
},
url: "/ajax_table.php",
url: "ajax_table.php",
formatters: {
},
templates: {
@@ -80,7 +80,7 @@ if (is_module_enabled('poller', 'mib')) {
device_id: '<?php echo htmlspecialchars($device['device_id']); ?>',
};
},
url: "/ajax_table.php",
url: "ajax_table.php",
formatters: {
},
templates: {
+1 -1
View File
@@ -41,7 +41,7 @@ if (is_module_enabled('poller', 'mib')) {
id: "device_mibs",
};
},
url: "/ajax_table.php",
url: "ajax_table.php",
formatters: {
},
templates: {
+1 -1
View File
@@ -47,7 +47,7 @@ if (is_module_enabled('poller', 'mib')) {
view: '<?php echo $vars['view']; ?>'
};
},
url: "/ajax_table.php",
url: "ajax_table.php",
formatters: {
},
templates: {