Changeset:
093dca6a5284
https://sourceforge.net/p/mrbs/hg-code/ci/093dca6a52842d6f5039d973de01cc2507ea5901
Author:
Campbell Morrison <[email protected]>
Date:
Wed Oct 05 08:21:32 2016 +0100
Log message:
Added more missing JSON Content-Type headers
diffstat:
web/check_slot_ajax.php | 1 +
web/edit_entry_handler.php | 1 +
web/report.php | 2 ++
web/search.php | 1 +
4 files changed, 5 insertions(+), 0 deletions(-)
diffs (51 lines):
diff -r 3b3f5a78b68b -r 093dca6a5284 web/check_slot_ajax.php
--- a/web/check_slot_ajax.php Wed Oct 05 08:11:25 2016 +0100
+++ b/web/check_slot_ajax.php Wed Oct 05 08:21:32 2016 +0100
@@ -37,5 +37,6 @@
}
}
+header("Content-Type: application/json");
echo json_encode($result);
diff -r 3b3f5a78b68b -r 093dca6a5284 web/edit_entry_handler.php
--- a/web/edit_entry_handler.php Wed Oct 05 08:11:25 2016 +0100
+++ b/web/edit_entry_handler.php Wed Oct 05 08:21:32 2016 +0100
@@ -749,6 +749,7 @@
$result['table_innerhtml'] = week_table_innerhtml($day, $month, $year,
$room, $area, $timetohighlight);
}
}
+ header("Content-Type: application/json");
echo json_encode($result);
exit;
}
diff -r 3b3f5a78b68b -r 093dca6a5284 web/report.php
--- a/web/report.php Wed Oct 05 08:11:25 2016 +0100
+++ b/web/report.php Wed Oct 05 08:21:32 2016 +0100
@@ -576,6 +576,7 @@
// If this is an Ajax request, we can now send the JSON data
if ($ajax)
{
+ header("Content-Type: application/json");
echo json_encode($json_data);
}
elseif ($output_format == OUTPUT_HTML)
@@ -1598,6 +1599,7 @@
{
if ($ajax)
{
+ header("Content-Type: application/json");
echo json_encode($json_data);
}
else
diff -r 3b3f5a78b68b -r 093dca6a5284 web/search.php
--- a/web/search.php Wed Oct 05 08:11:25 2016 +0100
+++ b/web/search.php Wed Oct 05 08:21:32 2016 +0100
@@ -360,6 +360,7 @@
if ($ajax)
{
+ header("Content-Type: application/json");
echo json_encode($json_data);
}
else
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits