Limit lease view to 1000 for now - fix javascript bind event
This commit is contained in:
parent
4e2aa2359a
commit
f11a580d04
|
@ -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>
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue