Skip to content

Commit

Permalink
navigation MDL-21529 Implemented a custom close icon for the dock pop…
Browse files Browse the repository at this point in the history
…out so as not to be confused with delete.
  • Loading branch information
Sam Hemelryk committed May 11, 2010
1 parent 12cc75a commit e0c9ba5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/dock.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ M.core_dock = {
M.core_dock.remove(this.id)
}, this);
// Add a close icon
var closeicon = this.Y.Node.create('<span class="hidepanelicon"><img src="'+M.util.image_url('t/delete', 'moodle')+'" alt="" style="width:11px;height:11px;cursor:pointer;" /></span>');
var closeicon = this.Y.Node.create('<span class="hidepanelicon"><img src="'+M.util.image_url('t/dockclose', 'moodle')+'" alt="" style="width:11px;height:11px;cursor:pointer;" /></span>');
closeicon.on('forceclose|click', M.core_dock.hide_all, M.core_dock);
closeicon.on('forceclose|click', M.core_dock.hide_all, M.core_dock);
this.commands.append(closeicon);
Expand Down
Binary file added pix/t/dockclose.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e0c9ba5

Please sign in to comment.