Limit lease view to 1000 for now - fix javascript bind event

This commit is contained in:
Akkadius 2017-09-15 03:19:05 -05:00
parent 4e2aa2359a
commit f11a580d04
2 changed files with 6 additions and 2 deletions

View File

@ -35,7 +35,7 @@
"aaSorting": []
});
$('.option_data').click(function(){
$(document).on("click",".option_data",function() {
var lease = $(this).attr("lease");
if ( $("#" + lease).is(":visible") ) {
$("#" + lease).hide();
@ -44,7 +44,7 @@
$("#" + lease).show();
$(this).text('Hide');
}
})
});
</script>

View File

@ -38,6 +38,10 @@ router.get('/', function(req, res, next) {
table_data = table_data + '<tr>' + table_row + '</tr>';
count++;
if(count >= 1000){
break;
}
}
table_data = template_render.set_template_variable(dhcp_leases, "table_data", table_data);