Permalink
Browse files

Merge branch 'MDL-37162_24' of git://github.com/pauln/moodle into MOO…

…DLE_24_STABLE
  • Loading branch information...
2 parents d9babbc + 490e604 commit a79b88e20ced50d0327ecc37ab23472568e860ea @danpoltawski danpoltawski committed Jan 15, 2013
Showing with 3 additions and 15 deletions.
  1. +0 −15 course/yui/toolboxes/toolboxes.js
  2. +3 −0 theme/base/style/course.css
View
15 course/yui/toolboxes/toolboxes.js
@@ -259,15 +259,6 @@ YUI.add('moodle-course-toolboxes', function(Y) {
},
_setup_for_resource : function(toolboxtarget) {
toolboxtarget = Y.one(toolboxtarget);
- // "Disable" show/hide icons (change cursor to not look clickable) if section is hidden
- var showhide = toolboxtarget.all(CSS.COMMANDSPAN + ' ' + CSS.HIDE);
- showhide.concat(toolboxtarget.all(CSS.COMMANDSPAN + ' ' + CSS.SHOW));
- showhide.each(function(node) {
- var section = node.ancestor(CSS.SECTIONLI);
- if (section && section.hasClass(CSS.SECTIONHIDDENCLASS)) {
- node.setStyle('cursor', 'auto');
- }
- });
// Set groupmode attribute for use by this.toggle_groupmode()
var groups;
@@ -708,12 +699,6 @@ YUI.add('moodle-course-toolboxes', function(Y) {
if (Y.Array.indexOf(response.resourcestotoggle, activityid) != -1) {
this.toggle_hide_resource_ui(button);
}
-
- if (value == 0) {
- button.setStyle('cursor', 'auto');
- } else {
- button.setStyle('cursor', 'pointer');
- }
}, this);
},
toggle_highlight : function(e) {
View
3 theme/base/style/course.css
@@ -87,6 +87,9 @@
.dir-rtl.path-course-view .completionprogress {float: none;}
.dir-rtl.path-course-view li.activity form.togglecompletion .ajaxworking {right: -22px;}
+li.section.hidden span.commands a.editing_hide,
+li.section.hidden span.commands a.editing_show {cursor:default;}
+
.section img.movetarget {height:16px;width:80px;}
#page-course-enrol .generalbox,

0 comments on commit a79b88e

Please sign in to comment.