diff --git a/core/misc/ajax.js b/core/misc/ajax.js index 1734d9f..53712d8 100644 --- a/core/misc/ajax.js +++ b/core/misc/ajax.js @@ -104,7 +104,9 @@ try { statusText = "\n" + Drupal.t("StatusText: !statusText", {'!statusText': $.trim(xmlhttp.statusText)}); } - catch (e) {} + catch (e) { + // Empty. + } responseText = ''; // Again, we don't have a way to know for sure whether accessing diff --git a/core/modules/block/js/block.admin.js b/core/modules/block/js/block.admin.js index 3d8080a..d9e146a 100644 --- a/core/modules/block/js/block.admin.js +++ b/core/modules/block/js/block.admin.js @@ -21,7 +21,7 @@ */ function hideCategoryDetails (index, element) { var $catDetails = $(element); - $details.toggle($details.find('li').filter(':visible').length > 0); + $catDetails.toggle($catDetails.find('li').filter(':visible').length > 0); } /** diff --git a/core/modules/node/content_types.js b/core/modules/node/content_types.js index 5a54d52..8c50715 100644 --- a/core/modules/node/content_types.js +++ b/core/modules/node/content_types.js @@ -18,7 +18,7 @@ }); $context.find('#edit-workflow').drupalSetSummary(function (context) { var vals = []; - $(context).find("input[name^='options']")filter(':checked').parent().each(function () { + $(context).find("input[name^='options']").filter(':checked').parent().each(function () { vals.push(Drupal.checkPlain($(this).text())); }); if (!$(context).find('#edit-options-status').is(':checked')) {