Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
field system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 May 2015 at 21:39 UTC
Updated:
8 Jun 2015 at 03:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pixelmord commentedHere is a patch that sets the visually-hidden class instead of using jQuery.hide() and adds an event listener to the machine name input to show its container in case it is invalid (empty in this case).
Comment #2
pixelmord commentedReady to test and review
Comment #3
pixelmord commentedComment #4
jmarkel commentedComment #5
tim.plunkettI manually tested it and it worked great!
We can't really test this, so RTBC
Comment #6
nod_Agreed with the patch but the UX of that admin page is pretty bad, if the machine name is required the label should be too really. Or the form rearranged at least.
Comment #7
tim.plunkettI did fix that immediately after :)
http://cgit.drupalcode.org/page_manager/commit/?id=e2cda93
But I still think the patch is reasonable to go in.
Comment #8
dsnopekRTBC +1!
Comment #10
droplet commentedI agreed it still reasonable to go in. But instead of a new `invalidHandler`, it should call `clickEditHandler` to end up auto-generated machine name.
Comment #11
pixelmord commented@droplet: Good idea, will save some lines of code.
I had to remove the e.preventDefault() in clickEditHandler() handler though, because it will prevent the machine name field to get focus. However this is unproblematic, because the we do not need to prevent the default anyways because the other listener is bound to the span.admin-link.
Comment #12
pixelmord commentedPlease review the modified patch
Comment #13
droplet commentedGreat! Much better.
Comment #14
webchickThat #5 gif is AWESOME! :D Much better.
Committed and pushed to 8.0.x. Thanks!