From aed7fb5cf5b04b296689771e3337b19a4a281f55 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 17 May 2014 20:25:25 -0400 Subject: Assignee change from the board is now a popover --- core/request.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core') diff --git a/core/request.php b/core/request.php index f2fa4d9f..df8ea41a 100644 --- a/core/request.php +++ b/core/request.php @@ -48,4 +48,9 @@ class Request { return isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'POST'; } + + public function isAjax() + { + return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest'; + } } -- cgit v1.2.3