Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
d296ca3d
Commit
d296ca3d
authored
Mar 09, 2015
by
Aaron Wells
Browse files
Don't ajaxify blocks that are using "hide title on empty content"
Bug 1429518 Change-Id: I816cd3bb60abb28925beab256804f16ba04100ed
parent
9aae02c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/blocktype/lib.php
View file @
d296ca3d
...
...
@@ -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
();
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment