Closed (fixed)
Project:
Webform
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Oct 2013 at 06:22 UTC
Updated:
5 May 2014 at 02:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
samvel commented$('#' + result.elementId).attr('readonly', '');not workingneed use
$('#' + result.elementId).removeAttr('readonly');insteadPatch attached
Comment #2
quicksketchThanks, simple patch with no downsides that I can see. I think specifying an empty attribute to remove an attribute was broken in some versions of jQuery, which is probably what you're experiencing. removeAttr() is much more reliable and available in all versions.
Comment #3
quicksketchThanks, committed to all branches.
Comment #5
fenstratNeeds porting to 8.x-4.x.
Comment #6
fenstratCommitted and pushed 45321e2 to 8.x-4.x. Thanks!