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": []
|
"aaSorting": []
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.option_data').click(function(){
|
$(document).on("click",".option_data",function() {
|
||||||
var lease = $(this).attr("lease");
|
var lease = $(this).attr("lease");
|
||||||
if ( $("#" + lease).is(":visible") ) {
|
if ( $("#" + lease).is(":visible") ) {
|
||||||
$("#" + lease).hide();
|
$("#" + lease).hide();
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
$("#" + lease).show();
|
$("#" + lease).show();
|
||||||
$(this).text('Hide');
|
$(this).text('Hide');
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,10 @@ router.get('/', function(req, res, next) {
|
||||||
table_data = table_data + '<tr>' + table_row + '</tr>';
|
table_data = table_data + '<tr>' + table_row + '</tr>';
|
||||||
|
|
||||||
count++;
|
count++;
|
||||||
|
|
||||||
|
if(count >= 1000){
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
table_data = template_render.set_template_variable(dhcp_leases, "table_data", table_data);
|
table_data = template_render.set_template_variable(dhcp_leases, "table_data", table_data);
|
||||||
|
|
Loading…
Reference in New Issue