From 8886223d38bd2c5fac83cc8bd41e0f0a2abe6d15 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Thu, 3 Jun 2010 07:53:31 +0000 Subject: [PATCH] navigation MDL-22420 Removed the reload icon --- blocks/navigation/block_navigation.php | 4 ---- blocks/navigation/navigation.js | 9 --------- blocks/settings/block_settings.php | 3 --- 3 files changed, 16 deletions(-) diff --git a/blocks/navigation/block_navigation.php b/blocks/navigation/block_navigation.php index d11f2ab5266d6..db61ea7355db2 100644 --- a/blocks/navigation/block_navigation.php +++ b/blocks/navigation/block_navigation.php @@ -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; diff --git a/blocks/navigation/navigation.js b/blocks/navigation/navigation.js index d5e6def11d6ff..12bb9b63cfa8a 100644 --- a/blocks/navigation/navigation.js +++ b/blocks/navigation/navigation.js @@ -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); - } } /** diff --git a/blocks/settings/block_settings.php b/blocks/settings/block_settings.php index 3e236afba29da..8be053c30e2ca 100644 --- a/blocks/settings/block_settings.php +++ b/blocks/settings/block_settings.php @@ -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); }