Project

General

Profile

Bug #3569

pkg_edit.php jquery 'add' and 'delete' action scrolls page to top.

Added by Marcello Silva Coutinho over 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
04/04/2014
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.1
Affected Architecture:

Description

On packages that uses row_helper when user clicks on add or delete button, the page scrolls to top.

It seems something with ajax
http://stackoverflow.com/questions/1061580/jquery-click-on-anchor-element-forces-scroll-to-top

A simple return false after jquery action fixes the unwanted scroll.

I`ll submit a pull request with the changes.

Associated revisions

Revision 251a1246 (diff)
Added by Marcello Silva Coutinho over 5 years ago

fixes Bug #3569

On packages that uses row_helper when user clicks on add or delete button, the page scrolls to top.
It seems something with ajax
http://stackoverflow.com/questions/1061580/jquery-click-on-anchor-element-forces-scroll-to-top

A simple return false after jquery action fixes the unwanted scroll.

Revision 2c0dd263 (diff)
Added by Marcello Silva Coutinho over 5 years ago

fixes Bug #3569

On packages that uses row_helper when user clicks on add or delete button, the page scrolls to top.
It seems something with ajax
http://stackoverflow.com/questions/1061580/jquery-click-on-anchor-element-forces-scroll-to-top

A simple return false after jquery action fixes the unwanted scroll.

History

#1 Updated by Marcello Silva Coutinho over 5 years ago

Pull request merged to 2.2 and 2.1 branch.

#2 Updated by Renato Botelho about 5 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

Pull requests merged

#3 Updated by Renato Botelho almost 5 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF