Opened 15 years ago
Closed 11 years ago
#13313 closed defect (bug) (fixed)
WP import: "Upload file and import" should be deactivated until a filename is entered
Reported by: | lloydbudd | Owned by: | |
---|---|---|---|
Milestone: | WordPress.org | Priority: | low |
Severity: | minor | Version: | 3.0 |
Component: | Import | Keywords: | has-patch |
Focuses: | Cc: |
Description
WP import: "Upload file and import" should be deactivated until a filename is entered
ENV: WP trunk 3.0-beta2-14526
Mac OS / Firefox 3.6.3
Additional Details
Same issue with wp-admin/media-new.php (browser upload)
Attachments (1)
Change History (13)
#2
@
15 years ago
- Type changed from feature request to defect (bug)
ocean90, thanks for the feedback.
You think it is a good user experience to have enabled a button that shouldn't be clicked? (bug)
Maybe, I'm missing an implementation detail, but the improved experience would only be appropriate for JS enabled, and it would be trivial to degrade gracefully (the current behavior).
#3
follow-up:
↓ 4
@
15 years ago
- Keywords ux-feedback ui-feedback added; import wxr file selector removed
Then we should use it on every page.
- on Updates page, don't show the button Update plugins, if no plugin is selected
- on pages with a search, don't show the button Search, if nothing is typed in for a search
- on Add new (post/page), don't show the button Publish/Updaten, if noting has changed
- ...
So it's not really a bug, that's the UI.
#4
in reply to:
↑ 3
@
15 years ago
Replying to ocean90:
Then we should use it on every page.
- on Updates page, don't show the button Update plugins, if no plugin is selected
- on pages with a search, don't show the button Search, if nothing is typed in for a search
- on Add new (post/page), don't show the button Publish/Updaten, if noting has changed
- ...
Those are interesting ones as well, though don't stand out for me in the same way because those are all pages with many potential work flows. If disabling there could be done *extremely* elegantly as well, then it should -- but I suspect the current browsers would result in a sometimes less than polished experience.
#5
@
15 years ago
This is already marked as future release, so we can look at the overall experience issue and try to fix it across the board. We're trying to hit RC1 in 2 days, and I wouldn't call this a blocker.
#6
follow-up:
↓ 7
@
14 years ago
The "disabled" HTML form attribute exists exactly for this, and should be a trivial bit of js to add. The disabled attribute is supported in all major browsers.
W3C HTML 4.01 - 17.12 Disabled and read-only controls
In contexts where user input is either undesirable or irrelevant, it is important to be able to disable a control or render it read-only. For example, one may want to disable a form's submit button until the user has entered some required data.
Note. The only way to modify dynamically the value of the disabled attribute is through a script.
#7
in reply to:
↑ 6
@
14 years ago
Replying to dangayle:
The "disabled" HTML form attribute exists exactly for this, and should be a trivial bit of js to add. The disabled attribute is supported in all major browsers.
Sorry, I should have said disabling a form element is trivial. Determining if it should be disabled is another thing altogether.
@
13 years ago
I'm not sure wheter common.js is the right place for this. But I didn't want to put it directly into template.php
#11
@
12 years ago
- Milestone changed from Future Release to WordPress.org
For importers, moving to WordPress.org milestone.
For similar behaviour throughout the core UI, #20855 should handle that.
#12
@
11 years ago
- Keywords ux-feedback ui-feedback removed
- Resolution set to fixed
- Status changed from new to closed
Any form that has a class of .wp-upload-form
and a file input keeps the submit button disabled until something has been selected. Looks like the WP and MT/TypePad importers are fine. This doesn't apply to the ones that use APIs for importing, and the OPML one is... well, it needs some love all around. Going to close this as fixed.
-1:
Can't find a good reason for that. Rather a useless line of javascript than an advantage. And then we need a JS and no-JS version.