Commit ef10abde authored by Dries's avatar Dries
Browse files

- Patch #655408 by roborn: fixed block drag-and-drop. One critical bug less.

parent ca2d5b57
......@@ -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') {
$('fieldset#edit-path', context).setSummary(function (context) {
if (!$('textarea[name="pages"]', context).val()) {
return Drupal.t('Not restricted');
Supports Markdown
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