Jump blocks use delta for id w/ colon

joshuajabbour - December 7, 2008 - 21:52
Project:Jump
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

By default, blocks use the block delta as part of the block's ID attribute, but this creates IDs that are inaccessible via CSS because jump.module uses a colon (:) in the block delta. This patch fixes this problem.

Block IDs before this patch
#block-jump-menu:menu-name

After this patch
#block-jump-menu-menu-name

AttachmentSize
block-delta-fix.patch1.01 KB

#1

evoltech - September 9, 2009 - 22:54
Status:needs review» reviewed & tested by the community

I was able to apply this to the DRUPAL-6--1 branch and verified that it fixes the stated issue.

#2

marcp - September 10, 2009 - 18:25
Status:reviewed & tested by the community» needs work

I think we're going to need an update function to convert jump block deltas (delta column in the blocks table) from, say "menu:navigation" to "menu-navigation" -- unless that gets done automatically (I haven't yet tested).

To test this, with 6.x-1.0, configure a jump menu block. Then, apply the patch. Does the previously configured jump menu block still work?

#3

evoltech - September 11, 2009 - 00:29

Well the jumps still work, but they don't have the newly formatted classes attached to them. This patch includes changes to jump.install to upgrade existing menus created with the jump module.

AttachmentSize
block-delta-fix.2.patch 2.13 KB

#4

marcp - September 11, 2009 - 18:23
Status:needs work» fixed

Thanks, evoltech. Committed with a few minor modifications. This will get into the next release along with a few other issues.

#5

System Message - September 25, 2009 - 18:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.