Commit bd30dbfc authored by catch's avatar catch
Browse files

Issue #1481560 by nod_: Add 'use strict' to all core JavaScript to enforce clean code.

parent 3e886168
(function ($) {
"use strict";
/**
* Provides Ajax page updating via jQuery $.ajax (Asynchronous JavaScript and XML).
*
......
/**
* @file
* Conditionally hide or show the appropriate settings and saved defaults
......@@ -7,6 +6,8 @@
(function ($) {
"use strict";
Drupal.behaviors.authorizeFileTransferForm = {
attach: function(context) {
$('#edit-connection-settings-authorize-filetransfer-default').change(function() {
......
(function ($) {
"use strict";
/**
* Attaches the autocomplete behavior to all required fields.
*/
......
(function ($) {
"use strict";
/**
* Attaches the batch behavior to progress bars.
*/
......
(function ($) {
"use strict";
/**
* Toggle the visibility of a fieldset using smooth animations.
*/
......
......@@ -5,6 +5,8 @@ jQuery.noConflict();
(function ($) {
"use strict";
/**
* Attach all registered behaviors to a page element.
*
......
(function ($) {
"use strict";
/**
* Retrieves the summary for the first element.
*/
......
(function ($) {
"use strict";
/**
* Attach the machine-readable name form element behavior.
*/
......
(function ($) {
"use strict";
/**
* A progressbar object. Initialized with the given id. Must be inserted into
* the DOM afterwards through progressBar.element.
......
(function ($) {
"use strict";
/**
* The base States namespace.
*
......
(function ($) {
"use strict";
/**
* Drag and drop table rows with field manipulation.
*
......
(function ($) {
"use strict";
/**
* Attaches sticky table headers.
*/
......
(function ($) {
"use strict";
Drupal.behaviors.tableSelect = {
attach: function (context, settings) {
// Select the inner-most table in case of nested tables.
......
(function ($) {
"use strict";
/**
* Set the client's system time zone as default values of form fields.
*/
......
(function ($) {
"use strict";
/**
* This script transforms a set of fieldsets into a stack of vertical
* tabs. Another tab pane can be selected by clicking on the respective
......
(function ($) {
"use strict";
/**
* Provide the summary information for the block settings vertical tabs.
*/
......
(function ($) {
"use strict";
Drupal.behaviors.bookFieldsetSummaries = {
attach: function (context) {
$(context).find('fieldset.book-outline-form').drupalSetSummary(function (context) {
......
......@@ -5,6 +5,8 @@
(function ($) {
"use strict";
Drupal.behaviors.color = {
attach: function (context, settings) {
var i, j, colors, field_name;
......
......@@ -4,6 +4,9 @@
*/
(function ($) {
"use strict";
Drupal.color = {
callback: function(context, settings, form, farb, height, width) {
// Solid background.
......
......@@ -5,6 +5,8 @@
(function ($) {
"use strict";
Drupal.behaviors.commentFieldsetSummaries = {
attach: function (context) {
var $context = $(context);
......
Markdown is supported
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