summaryrefslogtreecommitdiff
path: root/misc/drupal.js
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-10-14 02:39:48 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-10-14 02:39:48 +0000
commit5ac72678273bdd7abd2b08c3fbf1631bf00dc977 (patch)
tree2c465e0d6113e5e9919cdf55f20d91bed161c731 /misc/drupal.js
parent370de93087d7343653bdca3cf1bc7b1a171d514a (diff)
downloadbrdo-5ac72678273bdd7abd2b08c3fbf1631bf00dc977.tar.gz
brdo-5ac72678273bdd7abd2b08c3fbf1631bf00dc977.tar.bz2
- #88439: Update jQuery in core to 1.0.2
- #88642: Change drupal.js function separators to semi-colons.
Diffstat (limited to 'misc/drupal.js')
-rw-r--r--misc/drupal.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/misc/drupal.js b/misc/drupal.js
index fb0cf0ddf..b4130e4ad 100644
--- a/misc/drupal.js
+++ b/misc/drupal.js
@@ -19,7 +19,7 @@ Drupal.extend = function(obj) {
this[i] = obj[i];
}
}
-},
+};
/**
* Redirects a button's form submission to a hidden iframe and displays the result
@@ -82,7 +82,7 @@ Drupal.redirectFormButton = function (uri, button, handler) {
button.onmouseout = button.onblur = function() {
button.onclick = null;
}
-},
+};
/**
* Retrieves the absolute position of an element on the screen
@@ -103,21 +103,21 @@ Drupal.absolutePosition = function (el) {
r.y += tmp.y;
}
return r;
-},
+};
/**
* Return the dimensions of an element on the screen
*/
Drupal.dimensions = function (el) {
return { width: el.offsetWidth, height: el.offsetHeight };
-},
+};
/**
* Returns the position of the mouse cursor based on the event object passed
*/
Drupal.mousePosition = function(e) {
return { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop };
-},
+};
/**
* Parse a JSON response.
@@ -129,7 +129,7 @@ Drupal.parseJson = function (data) {
return { status: 0, data: data.length ? data : 'Unspecified error' };
}
return eval('(' + data + ');');
-},
+};
/**
* Create an invisible iframe for form submissions.
@@ -157,14 +157,14 @@ Drupal.createIframe = function () {
visibility: 'hidden'
});
$('body').append(div);
-},
+};
/**
* Delete the invisible iframe
*/
Drupal.deleteIframe = function () {
$('#redirect-holder').remove();
-},
+};
/**
* Freeze the current body height (as minimum height). Used to prevent
@@ -181,14 +181,14 @@ Drupal.freezeHeight = function () {
height: $('body').css('height')
}).attr('id', 'freeze-height');
$('body').append(div);
-},
+};
/**
* Unfreeze the body height
*/
Drupal.unfreezeHeight = function () {
$('#freeze-height').remove();
-}
+};
/**
* Wrapper to address the mod_rewrite url encoding bug
@@ -198,7 +198,7 @@ Drupal.encodeURIComponent = function (item, uri) {
uri = uri || location.href;
item = encodeURIComponent(item).replace('%2F', '/');
return uri.indexOf('?q=') ? item : item.replace('%26', '%2526').replace('%23', '%2523');
-}
+};
// Global Killswitch on the <html> element
if (Drupal.jsEnabled) {