block-settings MDL-23365 Removed the expansion on hover settings which was deprecated and no longer supported
This commit is contained in:
@@ -139,12 +139,4 @@ class block_settings extends block_base {
|
||||
$this->contentgenerated = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
function html_attributes() {
|
||||
$attributes = parent::html_attributes();
|
||||
if (!empty($this->config->enablehoverexpansion) && $this->config->enablehoverexpansion == 'yes') {
|
||||
$attributes['class'] .= ' block_js_expansion';
|
||||
}
|
||||
return $attributes;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,13 +37,6 @@ class block_settings_edit_form extends block_edit_form {
|
||||
|
||||
$yesnooptions = array('yes'=>get_string('yes'), 'no'=>get_string('no'));
|
||||
|
||||
$mform->addElement('select', 'config_enablehoverexpansion', get_string('enablehoverexpansion', $this->block->blockname), $yesnooptions);
|
||||
if (empty($this->block->config->enablehoverexpansion) || $this->block->config->enablehoverexpansion=='no') {
|
||||
$mform->getElement('config_enablehoverexpansion')->setSelected('no');
|
||||
} else {
|
||||
$mform->getElement('config_enablehoverexpansion')->setSelected('yes');
|
||||
}
|
||||
|
||||
$mform->addElement('select', 'config_enabledock', get_string('enabledock', $this->block->blockname), $yesnooptions);
|
||||
if (empty($this->block->config->enabledock) || $this->block->config->enabledock=='yes') {
|
||||
$mform->getElement('config_enabledock')->setSelected('yes');
|
||||
|
||||
@@ -24,6 +24,5 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$string['enablehoverexpansion'] = 'Enable mouseover expansion of this block';
|
||||
$string['enabledock'] = 'Allow the user to dock this block';
|
||||
$string['pluginname'] = 'Settings';
|
||||
|
||||
Reference in New Issue
Block a user