Fixed ajax_* calls for use with base_url

This commit is contained in:
laf 2016-06-15 12:58:23 +00:00
parent 66f8a7e071
commit e3db9c8561
7 changed files with 10 additions and 10 deletions

View File

@ -116,7 +116,7 @@ $tmp_output .= '
range: "' . mres($_POST['range']) . '"
};
},
url: "/ajax_table.php",
url: "ajax_table.php",
});
</script>

View File

@ -29,6 +29,6 @@ $pagetitle[] = 'Customers';
id: "customers",
};
},
url: "/ajax_table.php"
url: "ajax_table.php"
});
</script>

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>

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) {

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: {

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: {

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: {