Commit d296ca3d authored by Aaron Wells's avatar Aaron Wells
Browse files

Don't ajaxify blocks that are using "hide title on empty content"

Bug 1429518

Change-Id: I816cd3bb60abb28925beab256804f16ba04100ed
parent 9aae02c7
......@@ -131,7 +131,9 @@ abstract class PluginBlocktype extends Plugin implements IPluginBlocktype {
* @return boolean
public static function should_ajaxify() {
return true;
// If we want to hide the title if there is empty content, then we need to compute
// the content first, and we cant' do that if we're using AJAX.
return !static::hide_title_on_empty_content();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment