From e3db9c8561d103b0dd9d42ed6cfc889699f85449 Mon Sep 17 00:00:00 2001 From: laf Date: Wed, 15 Jun 2016 12:58:23 +0000 Subject: [PATCH] Fixed ajax_* calls for use with base_url --- html/includes/common/graylog.inc.php | 2 +- html/pages/customers.inc.php | 2 +- html/pages/device/edit/component.inc.php | 4 ++-- html/pages/device/edit/storage.inc.php | 4 ++-- html/pages/device/mib.inc.php | 4 ++-- html/pages/mib_assoc.inc.php | 2 +- html/pages/mibs.inc.php | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/html/includes/common/graylog.inc.php b/html/includes/common/graylog.inc.php index 0d24e8406f..7927605685 100644 --- a/html/includes/common/graylog.inc.php +++ b/html/includes/common/graylog.inc.php @@ -116,7 +116,7 @@ $tmp_output .= ' range: "' . mres($_POST['range']) . '" }; }, - url: "/ajax_table.php", + url: "ajax_table.php", }); diff --git a/html/pages/customers.inc.php b/html/pages/customers.inc.php index 40277817e1..a23fbf26b3 100644 --- a/html/pages/customers.inc.php +++ b/html/pages/customers.inc.php @@ -29,6 +29,6 @@ $pagetitle[] = 'Customers'; id: "customers", }; }, - url: "/ajax_table.php" + url: "ajax_table.php" }); diff --git a/html/pages/device/edit/component.inc.php b/html/pages/device/edit/component.inc.php index aebfac2941..36f21ab34b 100644 --- a/html/pages/device/edit/component.inc.php +++ b/html/pages/device/edit/component.inc.php @@ -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: "" }; }, - url: "/ajax_table.php" + url: "ajax_table.php" }); diff --git a/html/pages/device/edit/storage.inc.php b/html/pages/device/edit/storage.inc.php index e32dd06840..164e1a8afe 100644 --- a/html/pages/device/edit/storage.inc.php +++ b/html/pages/device/edit/storage.inc.php @@ -40,7 +40,7 @@ device_id: , }; }, - url: "/ajax_table.php", + url: "ajax_table.php", formatters: { "perc_update": function(column,row) { return "
' data-storage_id='"+row.storage_id+"' value='"+row.storage_perc_warn+"'>
"; @@ -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) { diff --git a/html/pages/device/mib.inc.php b/html/pages/device/mib.inc.php index 19131cdd09..a920702950 100644 --- a/html/pages/device/mib.inc.php +++ b/html/pages/device/mib.inc.php @@ -61,7 +61,7 @@ if (is_module_enabled('poller', 'mib')) { device_id: '', }; }, - url: "/ajax_table.php", + url: "ajax_table.php", formatters: { }, templates: { @@ -80,7 +80,7 @@ if (is_module_enabled('poller', 'mib')) { device_id: '', }; }, - url: "/ajax_table.php", + url: "ajax_table.php", formatters: { }, templates: { diff --git a/html/pages/mib_assoc.inc.php b/html/pages/mib_assoc.inc.php index 3296c7518a..d9626a2f37 100644 --- a/html/pages/mib_assoc.inc.php +++ b/html/pages/mib_assoc.inc.php @@ -41,7 +41,7 @@ if (is_module_enabled('poller', 'mib')) { id: "device_mibs", }; }, - url: "/ajax_table.php", + url: "ajax_table.php", formatters: { }, templates: { diff --git a/html/pages/mibs.inc.php b/html/pages/mibs.inc.php index 6c7c6e8518..a9e2da4687 100644 --- a/html/pages/mibs.inc.php +++ b/html/pages/mibs.inc.php @@ -47,7 +47,7 @@ if (is_module_enabled('poller', 'mib')) { view: '' }; }, - url: "/ajax_table.php", + url: "ajax_table.php", formatters: { }, templates: {