From 1b61b2da866c7bb1f9c3f39b86e702c4fec8e54d Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 3 Jul 2011 22:33:27 +0530 Subject: [PATCH] first page, laste page buttons working --- edgware/static/js/files/browse.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/edgware/static/js/files/browse.js b/edgware/static/js/files/browse.js index 9922fb5..a9147d6 100644 --- a/edgware/static/js/files/browse.js +++ b/edgware/static/js/files/browse.js @@ -27,6 +27,17 @@ $(function() { }, "json"); }); + $('#firstPage').click(function() { + $('#page_no').val('1'); + $('#filterForm').submit(); + }); + + $('#lastPage').click(function() { + var last_page = $('#noOfPages').text(); + $('#page_no').val(last_page); + $('#filterForm').submit(); + }); + $('#filterForm').submit(); $('#prevBtn').click(function() {