mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
webui: Greatly reduces application memory leak for dashboard (#7215)
This commit is contained in:
committed by
Neil Lathwood
parent
2cbee2dc02
commit
6077d3a3db
@@ -591,6 +591,9 @@ if (strpos($dash_config, 'globe') !== false) {
|
||||
}
|
||||
|
||||
function widget_reload(id,data_type) {
|
||||
$(".bootgrid-table").bootgrid("destroy");
|
||||
$("#widget_body_"+id+" *").off();
|
||||
$("#widget_body_"+id).empty();
|
||||
if( $("#widget_body_"+id).parent().data('settings') == 1 ) {
|
||||
settings = 1;
|
||||
} else {
|
||||
|
||||
2
lib/jquery-bootgrid/dist/jquery.bootgrid.js
vendored
2
lib/jquery-bootgrid/dist/jquery.bootgrid.js
vendored
@@ -883,7 +883,7 @@
|
||||
placeholder.each(function (index, item)
|
||||
{
|
||||
// todo: check how append is implemented. Perhaps cloning here is superfluous.
|
||||
$(item).before(element.clone(true)).remove();
|
||||
$(item).before(element).remove();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user