summaryrefslogtreecommitdiff
path: root/misc/drupal.js
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-12 00:29:09 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-12 00:29:09 +0000
commit430d83956928193245d22aba652e540060502a53 (patch)
tree413fac4a3ed1b10545b7edbc01252f14f9e2301b /misc/drupal.js
parent9dc60ce09b2d0ae801307499e437137b8407ce33 (diff)
downloadbrdo-430d83956928193245d22aba652e540060502a53.tar.gz
brdo-430d83956928193245d22aba652e540060502a53.tar.bz2
#231475 by birdmanx35 and redndahead: Coding style for comments in *.js.
Diffstat (limited to 'misc/drupal.js')
-rw-r--r--misc/drupal.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/misc/drupal.js b/misc/drupal.js
index 08e720ca0..4cb99bd99 100644
--- a/misc/drupal.js
+++ b/misc/drupal.js
@@ -3,7 +3,7 @@
var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} };
/**
- * Set the variable that indicates if JavaScript behaviors should be applied
+ * Set the variable that indicates if JavaScript behaviors should be applied.
*/
Drupal.jsEnabled = document.getElementsByTagName && document.createElement && document.createTextNode && document.documentElement && document.getElementById;
@@ -80,17 +80,17 @@ Drupal.t = function(str, args) {
}
if (args) {
- // Transform arguments before inserting them
+ // Transform arguments before inserting them.
for (var key in args) {
switch (key.charAt(0)) {
- // Escaped only
+ // Escaped only.
case '@':
args[key] = Drupal.checkPlain(args[key]);
break;
- // Pass-through
+ // Pass-through.
case '!':
break;
- // Escaped and placeholder
+ // Escaped and placeholder.
case '%':
default:
args[key] = Drupal.theme('placeholder', args[key]);
@@ -209,7 +209,7 @@ Drupal.freezeHeight = function () {
};
/**
- * Unfreeze the body height
+ * Unfreeze the body height.
*/
Drupal.unfreezeHeight = function () {
$('#freeze-height').remove();
@@ -230,7 +230,7 @@ Drupal.encodeURIComponent = function (item, uri) {
*/
Drupal.getSelection = function (element) {
if (typeof(element.selectionStart) != 'number' && document.selection) {
- // The current selection
+ // The current selection.
var range1 = document.selection.createRange();
var range2 = range1.duplicate();
// Select all text.
@@ -263,11 +263,11 @@ Drupal.ahahError = function(xmlhttp, uri) {
return message;
}
-// Global Killswitch on the <html> element
+// Global Killswitch on the <html> element.
if (Drupal.jsEnabled) {
- // Global Killswitch on the <html> element
+ // Global Killswitch on the <html> element.
$(document.documentElement).addClass('js');
- // 'js enabled' cookie
+ // 'js enabled' cookie.
document.cookie = 'has_js=1; path=/';
// Attach all behaviors.
$(document).ready(function() {