Browse Source

phpdoc compatibility

MOODLE_20_STABLE
bdaloukas 8 years ago
parent
commit
639fc36a78
  1. 21
      export/html/snakes/js/subModal.js

21
export/html/snakes/js/subModal.js

@ -67,9 +67,9 @@ function initPopUp() {
width = parseInt(params[1]);
height = parseInt(params[2]);
}
showPopWin(this.href,width,height,null);
showPopWin(this.href, width, height, null);
return false;
}
};
}
}
}
@ -124,7 +124,7 @@ function centerPopWin(width, height) {
if (width === null || isNaN(width)) {
width = gPopupContainer.offsetWidth;
}
if (height == null) {
if (height === null) {
height = gPopupContainer.offsetHeight;
}
@ -139,7 +139,7 @@ function centerPopWin(width, height) {
var fullHeight = getViewportHeight();
var fullWidth = getViewportWidth();
gPopupContainer.style.top = (scTop + ((fullHeight - (height+titleBarHeight)) / 2)) + "px";
gPopupContainer.style.top = (scTop + ((fullHeight - (height + titleBarHeight)) / 2)) + "px";
gPopupContainer.style.left = (scLeft + ((fullWidth - width) / 2)) + "px";
}
}
@ -184,7 +184,7 @@ function hidePopWin(callReturnFunc) {
var theBody = document.getElementsByTagName("BODY")[0];
theBody.style.overflow = "";
restoreTabIndexes();
if (gPopupMask == null) {
if (gPopupMask === null) {
return;
}
gPopupMask.style.display = "none";
@ -216,17 +216,16 @@ function disableTabIndexes() {
var i = 0;
for (var j = 0; j < gTabbableTags.length; j++) {
var tagElements = document.getElementsByTagName(gTabbableTags[j]);
for (var k = 0 ; k < tagElements.length; k++) {
for (var k = 0; k < tagElements.length; k++) {
gTabIndexes[i] = tagElements[k].tabIndex;
tagElements[k].tabIndex="-1";
tagElements[k].tabIndex = "-1";
i++;
}
}
}
}
function returnRefresh()
{
function returnRefresh() {
window.location.reload();
}
@ -254,7 +253,7 @@ function restoreTabIndexes() {
function hideSelectBoxes() {
var x = document.getElementsByTagName("SELECT");
for (var i=0;x && i < x.length; i++) {
for (var i = 0;x && i < x.length; i++) {
x[i].style.visibility = "hidden";
}
}
@ -269,7 +268,7 @@ function hideSelectBoxes() {
function displaySelectBoxes() {
var x = document.getElementsByTagName("SELECT");
for (var i=0;x && i < x.length; i++){
for (var i=0; x && i < x.length; i++){
x[i].style.visibility = "visible";
}
}

Loading…
Cancel
Save