navigation MDL-22420 Removed the reload icon

This commit is contained in:
Sam Hemelryk
2010-06-03 07:53:31 +00:00
parent 3ebc548f9b
commit 8886223d38
3 changed files with 0 additions and 16 deletions
-4
View File
@@ -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;
-9
View File
@@ -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);
}
}
/**
-3
View File
@@ -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);
}