Skip to content

Commit

Permalink
MDL-67442 assign: expand/contract text works in all browsers now
Browse files Browse the repository at this point in the history
  • Loading branch information
usqfowlerj committed Mar 15, 2020
1 parent d737452 commit 2a0645b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions mod/assign/module.js
Expand Up @@ -169,7 +169,7 @@ M.mod_assign.init_plugin_summary = function(Y, subtype, type, submissionid) {
if (contract) {
contract.on('click', function(e) {
e.preventDefault();
var link = e.target;
var link = e.currentTarget || e.target;
var linkclasses = link.getAttribute('class').split(' ');
var thissuffix = '';
for (var i = 0; i < linkclasses.length; i++) {
Expand Down Expand Up @@ -202,7 +202,7 @@ M.mod_assign.init_plugin_summary = function(Y, subtype, type, submissionid) {
if (expand) {
expand.on('click', function(e) {
e.preventDefault();
var link = e.target;
var link = e.currentTarget || e.target;
var linkclasses = link.getAttribute('class').split(' ');
var thissuffix = '';
for (var i = 0; i < linkclasses.length; i++) {
Expand Down
4 changes: 0 additions & 4 deletions mod/assign/styles.css
Expand Up @@ -194,10 +194,6 @@
display: none;
}

.path-mod-assign .expandsummaryicon i {
pointer-events: none;
}

.path-mod-assign.jsenabled .expandsummaryicon {
display: inline-block;
}
Expand Down

0 comments on commit 2a0645b

Please sign in to comment.