navigation MDL-22420 Removed the reload icon
This commit is contained in:
@@ -172,10 +172,6 @@ class block_navigation extends block_base {
|
||||
$renderer = $this->page->get_renderer('block_navigation');
|
||||
$this->content->text = $renderer->navigation_tree($navigation, $expansionlimit);
|
||||
|
||||
$reloadlink = new moodle_url($this->page->url, array('regenerate'=>'navigation'));
|
||||
|
||||
$this->content->footer .= $OUTPUT->action_icon($reloadlink, new pix_icon('t/reload', get_string('reload')), null, array('class'=>'customcommand reloadnavigation'));
|
||||
|
||||
// Set content generated to true so that we know it has been done
|
||||
$this->contentgenerated = true;
|
||||
|
||||
|
||||
@@ -102,11 +102,6 @@ M.block_navigation.classes.tree = function(Y, id, properties) {
|
||||
if (node === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
var reloadicon = node.one('.footer .reloadnavigation');
|
||||
if (reloadicon) {
|
||||
reloadicon.remove();
|
||||
}
|
||||
|
||||
// Attach event to toggle expansion
|
||||
node.all('.tree_item.branch').on('click', this.toggleexpansion , this);
|
||||
@@ -126,10 +121,6 @@ M.block_navigation.classes.tree = function(Y, id, properties) {
|
||||
if (this.candock) {
|
||||
this.init(Y, node);
|
||||
}
|
||||
|
||||
if (reloadicon) {
|
||||
node.one('.header .block_action').insert(reloadicon, 0);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -132,9 +132,6 @@ class block_settings extends block_base {
|
||||
$this->content->footer = '';
|
||||
}
|
||||
|
||||
$reloadlink = new moodle_url($this->page->url, array('regenerate'=>'navigation'));
|
||||
$this->content->footer .= $OUTPUT->action_icon($reloadlink, new pix_icon('t/reload', get_string('reload')), null, array('class'=>'customcommand reloadnavigation'));
|
||||
|
||||
if (!empty($this->config->enabledock) && $this->config->enabledock == 'yes') {
|
||||
user_preference_allow_ajax_update('nav_in_tab_panel_settingsnav'.block_settings::$navcount, PARAM_INT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user