Commit 8de2c44a authored by weibel manuel - mweibel's avatar weibel manuel - mweibel
Browse files

Update paul.js

adding icon titles
parent 4211eb17
...@@ -369,11 +369,25 @@ if(isIE11 && (window.location.pathname + window.location.search + window.locatio ...@@ -369,11 +369,25 @@ if(isIE11 && (window.location.pathname + window.location.search + window.locatio
/* Wema Start: Remove link from group-icon in edit mode */ /* Wema Start: Remove link from group-icon in edit mode */
if(isCoursePage()){ if(isCoursePage()){
var arrGroupNames = new Array('editing_groupsseparate', 'editing_groupsvisible', 'editing_groupsnone'); var arrGroupNames = new Array('editing_groupsseparate', 'editing_groupsvisible', 'editing_groupsnone');
var icoTitle = {
editing_groupsseparate: {
de: 'Getrennte Gruppen',
en: 'Separate groups'
},
editing_groupsvisible: {
de: 'Sichtbare Gruppen',
en: 'Visible groups'
},
editing_groupsnone: {
de: 'Keine Gruppen',
en: 'No groups'
}
};
for(var i=0; i<arrGroupNames.length; i++) { for(var i=0; i<arrGroupNames.length; i++) {
var nodeAnchor = document.getElementsByClassName(arrGroupNames[i]+' menu-action cm-edit-action'); var nodeAnchor = document.getElementsByClassName(arrGroupNames[i]+' menu-action cm-edit-action');
if(nodeAnchor.length>0) { if(nodeAnchor.length>0) {
for(var j=nodeAnchor.length; j>0; j--) { for(var j=nodeAnchor.length; j>0; j--) {
nodeAnchor[j-1].outerHTML = nodeAnchor[j-1].innerHTML; nodeAnchor[j-1].outerHTML = nodeAnchor[j-1].innerHTML.replace('class=', 'title="'+icoTitle[arrGroupNames[i]][document.documentElement.lang]+'" class=');
} }
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment