add pagination

This commit is contained in:
Sanj 2012-08-10 03:35:30 +05:30
parent e78345d023
commit cb518292c0

View File

@ -48,13 +48,14 @@ $(function() {
lastOpt.attr("selected") ? $(this).removeClass("notlastStop") : $(this).addClass("notlastStop"); lastOpt.attr("selected") ? $(this).removeClass("notlastStop") : $(this).addClass("notlastStop");
$(this).parents('tr').find('.submitFuzzyEdit').click(); $(this).parents('tr').find('.submitFuzzyEdit').click();
}); });
/*
$('#reloadPage').click(function() { $('#reloadPage').click(function() {
var start = $('#start').val(); var start = $('#start').val();
var end = $('#end').val(); var end = $('#end').val();
var url = location.pathname + "?start=" + start + "&end=" + end; var url = location.pathname + "?start=" + start + "&end=" + end;
window.location.href = url; window.location.href = url;
}); });
*/
}); });
function saveUNR(elem, markChecked) { function saveUNR(elem, markChecked) {
@ -91,9 +92,10 @@ function saveUNR(elem, markChecked) {
<body> <body>
<div id="stats"> <div id="stats">
Total Unique Routes remaining: {{ total }} &nbsp; Total Unique Routes remaining: {{ total }} &nbsp;
Showing <input size="1" id="start" value="{{ start }}" /> to <input size="1" id="end" value="{{ end }}" /> &nbsp; <form id="paginationForm" action="" method="GET">
<button id="reloadPage">Reload</button> Showing <input size="1" id="start" name="start" value="{{ start }}" /> to <input size="1" id="end" name="end" value="{{ end }}" /> &nbsp;
<input type="submit" value="Reload" />
</form>
</div> </div>
<table id="unrTable"> <table id="unrTable">
<thead> <thead>