Skip to content

Commit

Permalink
Merge pull request wicketstuff#529 from duesenklipper/master
Browse files Browse the repository at this point in the history
prevent default action when clicking sort header
  • Loading branch information
martin-g authored Jul 15, 2016
2 parents e8cc6a2 + 8f201fb commit 225a4e0
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.apache.wicket.ajax.AjaxEventBehavior;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.attributes.AjaxRequestAttributes;
import org.apache.wicket.markup.ComponentTag;
import org.apache.wicket.markup.html.panel.Panel;

Expand Down Expand Up @@ -58,6 +59,13 @@ protected void onEvent(AjaxRequestTarget target)

sortStateChanged(target);
}

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
{
super.updateAjaxAttributes(attributes);
attributes.setPreventDefault(true);
}
});
}

Expand Down

0 comments on commit 225a4e0

Please sign in to comment.