[MIG] website_anchor_smooth_scroll: Migration to 11.0 - #407
Conversation
|
Hey @njeudy, thank you for your Pull Request. It looks like some users haven't signed our Contributor License Agreement, yet.
Appreciation of efforts, |
|
Can you please squash together "OCA Transbot..." + "[FIX] Remove en.po..." commits. Ref: https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests |
116f9f2 to
430981e
Compare
|
@pedrobaeza yes it is done .. I also simplified history |
| ' smooth scroll', | ||
| 'version': '11.0.1.0.0', | ||
| 'category': 'Website', | ||
| 'website': 'http://www.antiun.com', |
There was a problem hiding this comment.
New rule is to put github repository url (https://github.com/OCA/website)
| @@ -0,0 +1,28 @@ | |||
| # -*- coding: utf-8 -*- | |||
| # © 2016 Antiun Ingeniería S.L. - Jairo Llopis | |||
There was a problem hiding this comment.
@pedrobaeza is this line needed I don't now if it could be delete or not, or if we need to add all contributors.
There was a problem hiding this comment.
The idea is to collect here all the contributors, and when touched, on the respective files.
40c25b6 to
c9d8fde
Compare
|
But I see that you have removed totally Transbot commits. You shouldn't do that, but let only one. |
c9d8fde to
d09f5e2
Compare
|
@pedrobaeza I squash transbot file with 8.0 commit , 10.0 commit .. I did not drop them I just keep all authors, and squash commit with transbot that are in relation. |
|
I'm seeing now only 3 commits, but no trace of any "OCA Transbot..." commit. It should be at least one, result of squashing together all the previous ones. |
|
@pedrobaeza yes, look at [8.0][website_anchor_smooth_scroll] Smooth scrolling on anchors. you have transbot file squashed in. and idem for [MIG] website_anchor_smooth_scroll: Migration to 10.0 I can do differently but as we only want to have clean history I think it can be better like this .. |
|
Yeah, but we shouldn't clean that way. Translations should be kept apart and with "OCA Transbot" identity, or all the lines of diff will be attributed to the person who makes the translation on the future contributor stats, which is not correct. |
|
ok I will rebase with transbot commit ... |
d09f5e2 to
da48a28
Compare
|
@pedrobaeza ok done :) clean rebase. |
|
Trying on runbot the demo page "Anchor smooth scroll demo", images that were available in previous version aren't now. Can you please change then for proper test? |
e0d83cc to
f95321d
Compare
|
I have cleaned a bit more the commits, because the first 2 are from the same author, and the renaming plus installable=False are not of significance. |
1343af8 to
1d618cb
Compare
|
@pedrobaeza done ! |
1d618cb to
d9c8592
Compare
d9c8592 to
87b6bd8
Compare
87b6bd8 to
ec5df2d
Compare
|
@pedrobaeza can you explain me why runbot is red ? find no errors .. |
|
@njeudy can you review your PR 1st? README and manifest need the usual fixes |
5ddbd18 to
ac69f7a
Compare
|
@simahawk found wrong website url in manifest but did not catch problems in README. Sorry if I mess something .. |
| if (event.target.hash != "") { | ||
| var target = $(event.target.hash); | ||
| return $('html, body') | ||
| .stop() |
There was a problem hiding this comment.
not blocking but these lines should be indented under the return statement
ac69f7a to
846a2e7
Compare
| Configuration | ||
| ============= | ||
|
|
||
| No configuration needed |
There was a problem hiding this comment.
You can drop the configuration section then
| Funders | ||
| ------- | ||
|
|
||
| None |
There was a problem hiding this comment.
Again, empty sections can be dropped
| * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */ | ||
| odoo.define('website_anchor_smooth_scroll.website_anchor_smooth_scroll', function (require) { | ||
|
|
||
| require('web.dom_ready'); |
There was a problem hiding this comment.
Do not put anything before "use strict" or it has no meaning. Besides, this call must appear above 1st dom modifications, not here.
| } | ||
|
|
||
| (function ($) { | ||
| $(document).ready(function () { |
There was a problem hiding this comment.
Just put the require('web.dom_ready'); line above this and remove this callback.
Get it for free for all of your `<a href="#whatever">Move me</a>` elements!
- [FIX] remove en.po that was erroneously created by transbot
6ca1160 to
3a5afe5
Compare
|
@yajo ok thank for the review, changes done. |
| // Apply to all links that start with `#` | ||
| $("a[href^='#']").live("click", website_anchor_smooth_scroll); | ||
| })(jQuery); | ||
| $("a[href^='#']:not([href=#])").on("click", website_anchor_smooth_scroll); |
There was a problem hiding this comment.
This function is being declared but never executed, just execute this line, without wrapping it in a function please 😊
3a5afe5 to
0a665f8
Compare
|
@yajo ok done, thanks a lot for review it helps me a lot .. and give really clean code :) |
yajo
left a comment
There was a problem hiding this comment.
Thanks to you @njeudy. BTW on successive reviews it's good to add one !fixup commit on top of the last one instead of ammending. It helps the reviewier to concentrate on the new diff rather than reviewing again all the change. Then, after the final OK is given, you squash it and we merge it.
Well, in any case it's OK now. Merging.
No description provided.