When users click on Title field from AllItems.aspx page, I want to redirect them to EditItem.aspx instead if DispForm.aspx page.
I have written following code. It's working fine for first 30 items(Page limit is 30).
<script type="text/javascript">
$(function() {
// Change all display form links to edit form links
$('.ms-vb a[href*="listform.aspx"]').each(function(){
var link = $(this).attr('href');
link = link.replace("PageType=4", "PageType=6");
$(this).attr('href', link);
});
});
</script>
But if I navigate through pagination, link is still same as PageType=4 and link is set to DispForm.aspx. How to overcome this issue?