forked from extern/egroupware
Fix some missed free() calls
This commit is contained in:
parent
81266c0eba
commit
5af17679f3
@ -976,16 +976,16 @@ var et2_nextmatch = /** @class */ (function (_super) {
|
|||||||
if (total == 0)
|
if (total == 0)
|
||||||
this.controller._emptyRow();
|
this.controller._emptyRow();
|
||||||
// Set data cache prefix to either provided custom or auto
|
// Set data cache prefix to either provided custom or auto
|
||||||
if (!this.options.settings.dataStorePrefix && this.options.settings.get_rows) {
|
if (!this.options.settings.dataStorePrefix && this.options.settings.get_rows) {
|
||||||
// Use jsapi data module to update
|
// Use jsapi data module to update
|
||||||
var list = this.options.settings.get_rows.split('.', 2);
|
var list = this.options.settings.get_rows.split('.', 2);
|
||||||
if (list.length < 2)
|
if (list.length < 2)
|
||||||
list = this.options.settings.get_rows.split('_'); // support "app_something::method"
|
list = this.options.settings.get_rows.split('_'); // support "app_something::method"
|
||||||
this.options.settings.dataStorePrefix = list[0];
|
this.options.settings.dataStorePrefix = list[0];
|
||||||
}
|
}
|
||||||
this.controller.setPrefix(this.options.settings.dataStorePrefix);
|
this.controller.setPrefix(this.options.settings.dataStorePrefix);
|
||||||
// Set the view
|
// Set the view
|
||||||
this.controller._view = this.view;
|
this.controller._view = this.view;
|
||||||
// Load the initial order
|
// Load the initial order
|
||||||
/*this.controller.loadInitialOrder(this._getInitialOrder(
|
/*this.controller.loadInitialOrder(this._getInitialOrder(
|
||||||
this.options.settings.rows, this.options.settings.row_id
|
this.options.settings.rows, this.options.settings.row_id
|
||||||
@ -1104,8 +1104,8 @@ var et2_nextmatch = /** @class */ (function (_super) {
|
|||||||
var autoRefresh_1 = et2_createWidget("select", {
|
var autoRefresh_1 = et2_createWidget("select", {
|
||||||
"empty_label": "Refresh"
|
"empty_label": "Refresh"
|
||||||
}, this);
|
}, this);
|
||||||
autoRefresh_1.set_id("nm_autorefresh");
|
autoRefresh_1.set_id("nm_autorefresh");
|
||||||
autoRefresh_1.set_select_options({
|
autoRefresh_1.set_select_options({
|
||||||
// Cause [unknown] problems with mail
|
// Cause [unknown] problems with mail
|
||||||
//30: "30 seconds",
|
//30: "30 seconds",
|
||||||
//60: "1 Minute",
|
//60: "1 Minute",
|
||||||
@ -1114,7 +1114,7 @@ var et2_nextmatch = /** @class */ (function (_super) {
|
|||||||
900: "15 Minutes",
|
900: "15 Minutes",
|
||||||
1800: "30 Minutes"
|
1800: "30 Minutes"
|
||||||
});
|
});
|
||||||
autoRefresh_1.set_value(this._get_autorefresh());
|
autoRefresh_1.set_value(this._get_autorefresh());
|
||||||
autoRefresh_1.set_statustext(egw.lang("Automatically refresh list"));
|
autoRefresh_1.set_statustext(egw.lang("Automatically refresh list"));
|
||||||
var defaultCheck = et2_createWidget("select", { "empty_label": "Preference" }, this);
|
var defaultCheck = et2_createWidget("select", { "empty_label": "Preference" }, this);
|
||||||
defaultCheck.set_id('nm_col_preference');
|
defaultCheck.set_id('nm_col_preference');
|
||||||
|
16
api/js/etemplate/et2_types.d.ts
vendored
16
api/js/etemplate/et2_types.d.ts
vendored
@ -71,13 +71,19 @@ declare var et2_nextmatch_header_bar : any;
|
|||||||
declare var et2_nextmatch_header : any;
|
declare var et2_nextmatch_header : any;
|
||||||
declare var et2_nextmatch_customfields : any;
|
declare var et2_nextmatch_customfields : any;
|
||||||
declare var et2_nextmatch_controller : any;
|
declare var et2_nextmatch_controller : any;
|
||||||
declare class et2_dynheight {
|
declare class et2_dynheight
|
||||||
|
{
|
||||||
constructor(_outerNode, _innerNode, _minHeight);
|
constructor(_outerNode, _innerNode, _minHeight);
|
||||||
outerNode : any;
|
|
||||||
update : any;
|
outerNode: any;
|
||||||
free : any;
|
update: any;
|
||||||
|
|
||||||
|
destroy();
|
||||||
|
}
|
||||||
|
|
||||||
|
declare class et2_nextmatch_rowProvider
|
||||||
|
{
|
||||||
}
|
}
|
||||||
declare class et2_nextmatch_rowProvider {}
|
|
||||||
declare var et2_nextmatch_rowWidget : any;
|
declare var et2_nextmatch_rowWidget : any;
|
||||||
declare var et2_nextmatch_rowTemplateWidget : any;
|
declare var et2_nextmatch_rowTemplateWidget : any;
|
||||||
declare var et2_ajaxSelect : any;
|
declare var et2_ajaxSelect : any;
|
||||||
|
@ -70,8 +70,8 @@ var et2_split = /** @class */ (function (_super) {
|
|||||||
// Destroy splitter, restore children
|
// Destroy splitter, restore children
|
||||||
this.div.trigger("destroy");
|
this.div.trigger("destroy");
|
||||||
// Destroy dynamic full-height
|
// Destroy dynamic full-height
|
||||||
this.dynheight.free();
|
this.dynheight.destroy();
|
||||||
_super.prototype.destroy.call(this);
|
_super.prototype.destroy.call(this);
|
||||||
// Remove placeholder children
|
// Remove placeholder children
|
||||||
if (this._children.length == 0) {
|
if (this._children.length == 0) {
|
||||||
this.div.empty();
|
this.div.empty();
|
||||||
|
@ -17,7 +17,7 @@ jquery.splitter;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import {et2_DOMWidget} from "./et2_core_DOMWidget";
|
import {et2_DOMWidget} from "./et2_core_DOMWidget";
|
||||||
import {WidgetConfig, et2_register_widget} from "./et2_core_widget";
|
import {et2_register_widget, WidgetConfig} from "./et2_core_widget";
|
||||||
import {ClassWithAttributes} from "./et2_core_inheritance";
|
import {ClassWithAttributes} from "./et2_core_inheritance";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -109,7 +109,7 @@ class et2_split extends et2_DOMWidget implements et2_IResizeable, et2_IPrint
|
|||||||
this.div.trigger("destroy");
|
this.div.trigger("destroy");
|
||||||
|
|
||||||
// Destroy dynamic full-height
|
// Destroy dynamic full-height
|
||||||
this.dynheight.free();
|
this.dynheight.destroy();
|
||||||
|
|
||||||
super.destroy();
|
super.destroy();
|
||||||
|
|
||||||
|
@ -855,7 +855,7 @@ var et2_vfsUpload = /** @class */ (function (_super) {
|
|||||||
while (this._children.length > 0) {
|
while (this._children.length > 0) {
|
||||||
var node = this._children[this._children.length - 1];
|
var node = this._children[this._children.length - 1];
|
||||||
this.removeChild(node);
|
this.removeChild(node);
|
||||||
node.free();
|
node.destroy();
|
||||||
}
|
}
|
||||||
this.progress.empty();
|
this.progress.empty();
|
||||||
this.list.empty();
|
this.list.empty();
|
||||||
@ -918,8 +918,8 @@ var et2_vfsUpload = /** @class */ (function (_super) {
|
|||||||
for (var child_index = this._children.length - 1; child_index >= 0; child_index--) {
|
for (var child_index = this._children.length - 1; child_index >= 0; child_index--) {
|
||||||
var child = this._children[child_index];
|
var child = this._children[child_index];
|
||||||
if (child.options.value.path === file_data.path) {
|
if (child.options.value.path === file_data.path) {
|
||||||
this.removeChild(child);
|
this.removeChild(child);
|
||||||
child.free();
|
child.destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -976,9 +976,9 @@ class et2_vfsUpload extends et2_file
|
|||||||
// Remove previous
|
// Remove previous
|
||||||
while(this._children.length > 0)
|
while(this._children.length > 0)
|
||||||
{
|
{
|
||||||
var node = this._children[this._children.length-1];
|
var node = this._children[this._children.length - 1];
|
||||||
this.removeChild(node);
|
this.removeChild(node);
|
||||||
node.free();
|
node.destroy();
|
||||||
}
|
}
|
||||||
this.progress.empty();
|
this.progress.empty();
|
||||||
this.list.empty();
|
this.list.empty();
|
||||||
@ -1058,7 +1058,7 @@ class et2_vfsUpload extends et2_file
|
|||||||
if(child.options.value.path === file_data.path)
|
if(child.options.value.path === file_data.path)
|
||||||
{
|
{
|
||||||
this.removeChild(child);
|
this.removeChild(child);
|
||||||
child.free();
|
child.destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ widget_browser.prototype.select_widget = function(e,f)
|
|||||||
if(this.widget)
|
if(this.widget)
|
||||||
{
|
{
|
||||||
this.et2.widgetContainer.removeChild(this.widget);
|
this.et2.widgetContainer.removeChild(this.widget);
|
||||||
this.widget.free();
|
this.widget.destroy();
|
||||||
this.widget = null;
|
this.widget = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user