Jump to top of page
jimyhuang - June 28, 2009 - 08:13
| Project: | Text Size |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Because of the href of link is "#". When click image or link, browser will bring user to top of page.
To solve this issue, I just change jquery.textsize.js, add "return false;" in click event. Not sure this method is correct, looks like solved my issue.
if ($.cookie("textsize") && $.cookie("textsize") != textsize_maximum) {
$('a.ts_increase[href=#]').click(
removeBC();
// bala bala...
+ return false;
}
);
};
#1
This is a very good idea, all click() handlers should return false to prevent browser from following the "#" link (which goes to top of page).
#2
Fixed in the Development snapshots version.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.