Skip to content

Commit

Permalink
navigation MDL-22420 Removed the reload icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Jun 3, 2010
1 parent 3ebc548 commit 8886223
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions blocks/navigation/block_navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ function get_content() {
$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;

Expand Down
9 changes: 0 additions & 9 deletions blocks/navigation/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}
}

/**
Expand Down
3 changes: 0 additions & 3 deletions blocks/settings/block_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@ function get_content() {
$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);
}
Expand Down

0 comments on commit 8886223

Please sign in to comment.