Bug Tracker

Modify

Ticket #2444 (closed bug: worksforme)

Opened 5 years ago

Last modified 5 years ago

click with return false in Safari 2

Reported by: kof13 Owned by:
Priority: trivial Milestone: 1.2.4
Component: event Version: 1.2.3
Keywords: Cc:
Blocking: Blocked by:

Description

I can't return false onclick to prevent changing to new page in safari 2. $('#test').click(function(){

alert(123); return false;

});

Change History

comment:1 Changed 5 years ago by flesler

Try this:

$('#test').click(function(e){
   e.preventDefault();
   alert(123);
});

Let me know if this solves it.

comment:2 Changed 5 years ago by davidserduke

  • Status changed from new to closed
  • Resolution set to worksforme
  • Milestone changed from 1.2.3 to 1.2.4

I agree with flesler that should be the fix. If it fails to work (I don't have a mac to test it) then feel free to reopen the ticket with your test case and details.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.