summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-21 08:14:12 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-21 08:14:12 +0000
commitef10abde20c8052ca4dd6eec9ca84b6f74d37a11 (patch)
tree3cf09d848d0de226f65143b6964e1eb292eaa769
parentca2d5b573239492a389d46e17f1ce365ad28cdf3 (diff)
downloadbrdo-ef10abde20c8052ca4dd6eec9ca84b6f74d37a11.tar.gz
brdo-ef10abde20c8052ca4dd6eec9ca84b6f74d37a11.tar.bz2
- Patch #655408 by roborn: fixed block drag-and-drop. One critical bug less.
-rw-r--r--modules/block/block.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/block/block.js b/modules/block/block.js
index 23bd50da3..95881cbb8 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');