As we are now allowing people to set the version on an instance by instance basis to avoid having long lists of 100's and 100's of books, we need some jQuery that loads a new list of books into the select box when someone changes the version. We also need to bring the old jQuery for limiting the number of chapters up to Drupal 7.

I'm not a jQuery man really, and need to focus on the views integration at the moment - so if anyone wants to give this a shot let me know and I'll talk you through it.

Comments

rlmumford’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Moved to the correct branch

m4olivei’s picture

Issue summary: View changes

Been awhile for this issue. From what I can tell the current state of 7.x-1.x-dev has some of this, but not all. The module in it's current status uses FAPI #ajax to reload the Books list when the Bible field changes. I haven't used the 6.x version but I assume the other behaviour your talking about is as you change the Book select, the Chapter select updates accordingly. That would be awesome. I'l see what I can do to submit a patch.

chasingmaxwell’s picture

I'm interested in this feature also. Did you make any progress m4olivei? I could help out also.

m4olivei’s picture

Sadly I did not. I'd be happy to review anything you come up with though. Want to take it on?

chasingmaxwell’s picture

I can't commit to it currently, but there's a good chance this will be a required feature for the project I'm working on currently. If so then I'll share whatever I come up with here.

akosipax’s picture

Status: Active » Needs review
StatusFileSize
new14.21 KB

Here is the patch for limiting the chapters via FAPI's ajax.

My IDE automatically trims whitespaces as well according to Drupal's coding standards that's why there will be alot of those in this patch.

m4olivei’s picture

Issue tags: +7.x-1.0 blocker
akosipax’s picture

StatusFileSize
new2.5 KB

Here is another patch. The previous patch did not consider bible fields when editing existing nodes. This is branching from the latest 7.x-1.x branch.