mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 02:48:37 +00:00
Fixed ajax_* calls for use with base_url
This commit is contained in:
parent
66f8a7e071
commit
e3db9c8561
@ -116,7 +116,7 @@ $tmp_output .= '
|
||||
range: "' . mres($_POST['range']) . '"
|
||||
};
|
||||
},
|
||||
url: "/ajax_table.php",
|
||||
url: "ajax_table.php",
|
||||
});
|
||||
</script>
|
||||
|
||||
|
@ -29,6 +29,6 @@ $pagetitle[] = 'Customers';
|
||||
id: "customers",
|
||||
};
|
||||
},
|
||||
url: "/ajax_table.php"
|
||||
url: "ajax_table.php"
|
||||
});
|
||||
</script>
|
||||
|
@ -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>
|
||||
|
@ -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) {
|
||||
|
@ -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: {
|
||||
|
@ -41,7 +41,7 @@ if (is_module_enabled('poller', 'mib')) {
|
||||
id: "device_mibs",
|
||||
};
|
||||
},
|
||||
url: "/ajax_table.php",
|
||||
url: "ajax_table.php",
|
||||
formatters: {
|
||||
},
|
||||
templates: {
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user