mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Removed ContentNegoitator::disable() from FormResponse - it's disabled already
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@93659 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
bd37d67a48
commit
24ed6150cf
@ -76,7 +76,6 @@ class FormResponse {
|
|||||||
if(isset($_REQUEST['forcehtml'])) {
|
if(isset($_REQUEST['forcehtml'])) {
|
||||||
return self::$non_ajax_content;
|
return self::$non_ajax_content;
|
||||||
} else if(isset($_REQUEST['forceajax']) || Director::is_ajax()) {
|
} else if(isset($_REQUEST['forceajax']) || Director::is_ajax()) {
|
||||||
ContentNegotiator::disable();
|
|
||||||
// TODO figure out a way to stay backwards-compatible with Ajax.Evaluator and still use the automatic evaluating of Prototype
|
// TODO figure out a way to stay backwards-compatible with Ajax.Evaluator and still use the automatic evaluating of Prototype
|
||||||
//header("Content-type: text/javascript");
|
//header("Content-type: text/javascript");
|
||||||
return self::get_javascript();
|
return self::get_javascript();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user