Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Extension manager now scrolls to top when search filters are added/removed #11700

Closed
wants to merge 1 commit into from
Closed

Extension manager now scrolls to top when search filters are added/removed #11700

wants to merge 1 commit into from

Conversation

nhickok
Copy link

@nhickok nhickok commented Sep 14, 2015

In reference to bug #10611:

I took into account the feedback on the previous attempt to fix this bug (#11178) and implemented the suggested changes (i.e. added $(".modal-body", $dlg).scrollTop(0); below both calls to view.filter(...)). All unit tests pass and the feature works as intended when search filters are added/removed.

@ingorichter
Copy link
Contributor

@stowball do you have a minute to verify that this fixes the issue for you?

@ficristo
Copy link
Collaborator

This seems a duplicate of #11378

@nhickok
Copy link
Author

nhickok commented Sep 14, 2015

You're right, they are both the same. I must not have noticed it. I'll close this pull request.

@nhickok nhickok closed this Sep 14, 2015
@stowball
Copy link
Contributor

Yep, this works as expected. I wonder whether we should now be caching $(".modal-body", $dlg) in to its own variable since its called 5 times?

@ingorichter
Copy link
Contributor

Yes, assign to it's own variable is a good idea.

@mansimarkaur
Copy link
Contributor

Does $(".modal-body", $dlg) still need to be assigned to it's own variable?

@ficristo
Copy link
Collaborator

Yes, do you want to take a look?
It seems to me that @darkcoderrises will not fix it in his PR at #11378, so go ahead if you want.

@mansimarkaur
Copy link
Contributor

@stowball I think $(".modal-body", $dlg) is being used thrice only in ExtensionManagerDialog.js and not 5 times anywhere. Please correct me if I'm wrong.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants