Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
Seven theme
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Nov 2012 at 19:13 UTC
Updated:
29 Jul 2014 at 21:28 UTC
Jump to comment: Most recent, Most recent file



Comments
Comment #1
Bojhan commented:).
Comment #2
lewisnymanPATCH!
Comment #3
Anonymous (not verified) commentedHmm... wouldn't a finger swipe be the same as "Save and continue" (which to me is the same as "Next"). You would also want to be able to see the previous option.
Comment #4
Anonymous (not verified) commentedRe-update accidental status setting.
Comment #5
Bojhan commentedSounds like scope creep to me,
Comment #6
cweagansThis entire block would be so much more simple if it were using jQuery. Why use plain Javascript? If we're not going to use jQuery, then there needs to be some comments, as it's quite dense. However, I'm pretty sure that IE8 does not support DOM level 2, which is necessary for document.addEventListener, so maybe look at using jQuery instead of the addEventListener call?
Needs newline :)
Is there a reason to manually add that http header here? Also, needs newline.
Comment #7
nod_It needs a closure. and "use strict".
I asked for not using jQuery here. It's not needed, this is targeted at mobile and they understands DOM2.
Comment #8
cweagansThat's true, but this Javascript is loaded unconditionally on all browsers and it'll throw a Javascript error on browsers that do not support it.
Comment #9
johnalbinGiven that more and more users (especially world-wide) only have a mobile device and not a larger-screened computer, this makes a hell of a lot of sense. Thanks for taking this on!
I agree this is scope creep. I have concerns about whether this idea would even be a good idea. But if you'd like to discuss, let's move it to a separate follow-up issue.
nod_'s request to not use jQuery here is inline with the JavaScript decisions we've been discussing for several weeks (months?). We cannot make a change to this approach to JS at this late date before code freeze. If you'd like to re-argue that, can we at least push the argument off to past December 1? :-)
Also, IE8 should be getting the full-on desktop installation experience that doesn't use this new JS.
Comment #10
johnalbinYes. We're overriding theme_install_page(), so we need to keep all the original code from that theme function. :-)
See http://api.drupal.org/api/drupal/core%21includes%21theme.maintenance.inc...
Updated patch.
Comment #11
johnalbinAdding tag, so it shows up in "mobile admin" list on http://groups.drupal.org/mobile/drupal-8
Comment #12
shyamala commentedTested on Chrome. Attached screenshots.
Comment #13
shyamala commentedTested on Chrome. Attached screenshots.
Comment #14
Bojhan commentedAnything left to do here?
Comment #15
shyamala commentedHaving this tested on multiple devices should help, before moving to RTBC. I can have it tested on Monday on a couple of devices.
Comment #16
nod_Quick reroll
renamed the file to
mobile.install.jswe don't use hyphens anywhere else. Added the script in seven_preprocess_install_page() instead of taking over the theme. Replaced.innerTextwith.innerHTMLsince it doesn't work in Firefox. Made the findStep() function return as soon as it finds a result to avoid looping over everything.Comment #18
moshe weitzman commented#16: core-js-install-steps-1832568-17.patch queued for re-testing.
Comment #20
moshe weitzman commentedLooks like a real test failure. Anyone available to finish off this patch?
Comment #21
mbrett5062 commentedLooked into this, and do not see how this can be failing. Nothing to do with this patch. Have tested on local machine clean install with patch applied, run the test that failed and it passes.
Maybe try one more shot at the test bot.
Comment #22
mbrett5062 commented#16: core-js-install-steps-1832568-17.patch queued for re-testing.
Comment #23
nod_test ok now somehow.
Comment #24
attiks commentedLooks good, nice work
Comment #25
johnalbin#16: core-js-install-steps-1832568-17.patch queued for re-testing.
Comment #26
catchIs this the only place it can go?
Comment #27
nod_It's very much tied to the markup of the install screen since we're getting the number of steps and current step from the markup and not some JS settings.
I'd assume that a distribution would override that since the markup could/will be different.
So yes to me that's only on seven theme install pages that it should go. Maybe I missed a part of the question?
Previously it was taking over the theme function which was a bit more messy. It's not in a hook_library_info since there is no dependency for the script.
Comment #28
webchickSounds like catch's concern is addressed. This is a nice improvement.
Committed and pushed to 8.x. Thanks!