Closed (fixed)
Project:
Multi Node Add
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Sep 2013 at 09:29 UTC
Updated:
4 Sep 2014 at 17:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
aron novakthank you for the patch. it's committed
Comment #4
milton_segretti commentedHello, sorry to reopen this but I am having real difficulty getting this to work and was wondering if anybody else was having the same issue. I have tried rolling back the module to a version before the patch was submitted and applying it myself but I am still having no luck.
Pre-populate works fine with text boxes, text areas and select lists but no joy with check boxes and radio buttons.
Any thoughts?
Comment #5
milton_segretti commentedHello again, I had a go at fixing this for myself and have added a patch that seems to make it work for me. The issue I ran into was that the line:
var checked = $(this).is(':checked');needed to be part of the IF statement above it as an AND. I also removed the "var checked ="
Next I changed the line:
$('#' + $(this).attr('id'), frames['node_' + i].document).prop('checked', checked);to
$('#' + $(this).attr('id'), frames['node_' + i].document).attr('checked', true);which made it work for the default version of jQuery shipped with Drupal 7 (version: 1.4.4, I think).
I don't know javascript but just following the logic and transferring what I know from my basic knowledge of php seemed to do the trick. Please feel free to point out if I have gone wrong somewhere.
Comment #6
aron novakcommitted, thanks, seems to be fine