From ef10abde20c8052ca4dd6eec9ca84b6f74d37a11 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Mon, 21 Dec 2009 08:14:12 +0000 Subject: [PATCH] - Patch #655408 by roborn: fixed block drag-and-drop. One critical bug less. --- modules/block/block.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/block/block.js b/modules/block/block.js index 23bd50da3021..95881cbb80ae 100644 --- a/modules/block/block.js +++ b/modules/block/block.js @@ -6,6 +6,13 @@ */ Drupal.behaviors.blockSettingsSummary = { attach: function (context) { + // The setSummary method required for this behavior is not available + // on the Blocks administration page, so we need to make sure this + // behavior is processed only if setSummary is defined. + if (typeof jQuery.fn.setSummary == 'undefined') { + return; + } + $('fieldset#edit-path', context).setSummary(function (context) { if (!$('textarea[name="pages"]', context).val()) { return Drupal.t('Not restricted'); -- GitLab