Skip to content

Commit

Permalink
patched/removed invalid role value tree-item; fixed loader svg attrib…
Browse files Browse the repository at this point in the history
…utes
  • Loading branch information
alex40724 committed Jul 29, 2020
1 parent 571bc2c commit 58abc79
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Services/Block/js/ilblockcallback.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function ilBlockJSHandler(block_id, sUrl)
{
var loadergif = document.createElement('img');
loadergif.src = "./templates/default/images/loader.svg";
loadergif.border = 0;
loadergif.alt = "";
$(loadergif).css("position", "absolute");
obj.appendChild(loadergif);
}
Expand Down
2 changes: 1 addition & 1 deletion libs/bower/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"developer": "akill",
"purpose": "",
"last-update-for-ilias": "5.4.0",
"note": "The former patch (ILIAS < 5.4.0) is not needed anymore. Use of size() has been removed from the lib."
"note": "Accessibility/Valid HTML: Remove role='tree-item' from code, since this is an invalid role value."
},
"moment": {
"introduction-date": null,
Expand Down
2 changes: 1 addition & 1 deletion libs/bower/bower_components/jstree/dist/jstree.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@
return this.nodeType === 3 && (!this.nodeValue || /^\s+$/.test(this.nodeValue));
})
.remove();
this.element.html("<"+"ul class='jstree-container-ul jstree-children' role='group'><"+"li id='j"+this._id+"_loading' class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='tree-item'><i class='jstree-icon jstree-ocl'></i><"+"a class='jstree-anchor' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>" + this.get_string("Loading ...") + "</a></li></ul>");
this.element.html("<"+"ul class='jstree-container-ul jstree-children' role='group'><"+"li id='j"+this._id+"_loading' class='jstree-initial-node jstree-loading jstree-leaf jstree-last' ><i class='jstree-icon jstree-ocl'></i><"+"a class='jstree-anchor' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>" + this.get_string("Loading ...") + "</a></li></ul>");
this.element.attr('aria-activedescendant','j' + this._id + '_loading');
this._data.core.li_height = this.get_container_ul().children("li").first().outerHeight() || 24;
this._data.core.node = this._create_prototype_node();
Expand Down
2 changes: 1 addition & 1 deletion libs/bower/bower_components/jstree/dist/jstree.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion libs/bower/bower_components/jstree/src/jstree.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@
return this.nodeType === 3 && (!this.nodeValue || /^\s+$/.test(this.nodeValue));
})
.remove();
this.element.html("<"+"ul class='jstree-container-ul jstree-children' role='group'><"+"li id='j"+this._id+"_loading' class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='tree-item'><i class='jstree-icon jstree-ocl'></i><"+"a class='jstree-anchor' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>" + this.get_string("Loading ...") + "</a></li></ul>");
this.element.html("<"+"ul class='jstree-container-ul jstree-children' role='group'><"+"li id='j"+this._id+"_loading' class='jstree-initial-node jstree-loading jstree-leaf jstree-last'><i class='jstree-icon jstree-ocl'></i><"+"a class='jstree-anchor' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>" + this.get_string("Loading ...") + "</a></li></ul>");
this.element.attr('aria-activedescendant','j' + this._id + '_loading');
this._data.core.li_height = this.get_container_ul().children("li").first().outerHeight() || 24;
this._data.core.node = this._create_prototype_node();
Expand Down

0 comments on commit 58abc79

Please sign in to comment.