Skip to content

Instantly share code, notes, and snippets.

@leonguyen
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save leonguyen/9284959 to your computer and use it in GitHub Desktop.

Select an option

Save leonguyen/9284959 to your computer and use it in GitHub Desktop.
ad_user list_js
<script type="text/javascript">
var options = {
size:"small",
alignment:"right",
currentPage: <%=typeof(pg)!='undefined'?pg.current:''%>,
totalPages: <%=typeof(pg)!='undefined'?pg.pageCount:''%>,
pageUrl: function(type, page, current){
return '<%=typeof(pg)!='undefined'?pg.prelink:''%>' + page;
}
}
$('#pg').bootstrapPaginator(options);
$("#btnSearch").click(function() {
$('#frm').submit();
});
$("#selLimit").change(function() {
$('#frm').submit();
});
$("#selStatus").change(function() {
$('#frm').submit();
});
$("#selUpd").change(function() {
chkUpdate('/ad_user/update');
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment