mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
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)
|
||||
this.controller._emptyRow();
|
||||
// Set data cache prefix to either provided custom or auto
|
||||
if (!this.options.settings.dataStorePrefix && this.options.settings.get_rows) {
|
||||
// Use jsapi data module to update
|
||||
var list = this.options.settings.get_rows.split('.', 2);
|
||||
if (list.length < 2)
|
||||
list = this.options.settings.get_rows.split('_'); // support "app_something::method"
|
||||
this.options.settings.dataStorePrefix = list[0];
|
||||
}
|
||||
this.controller.setPrefix(this.options.settings.dataStorePrefix);
|
||||
// Set the view
|
||||
this.controller._view = this.view;
|
||||
if (!this.options.settings.dataStorePrefix && this.options.settings.get_rows) {
|
||||
// Use jsapi data module to update
|
||||
var list = this.options.settings.get_rows.split('.', 2);
|
||||
if (list.length < 2)
|
||||
list = this.options.settings.get_rows.split('_'); // support "app_something::method"
|
||||
this.options.settings.dataStorePrefix = list[0];
|
||||
}
|
||||
this.controller.setPrefix(this.options.settings.dataStorePrefix);
|
||||
// Set the view
|
||||
this.controller._view = this.view;
|
||||
// Load the initial order
|
||||
/*this.controller.loadInitialOrder(this._getInitialOrder(
|
||||
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", {
|
||||
"empty_label": "Refresh"
|
||||
}, this);
|
||||
autoRefresh_1.set_id("nm_autorefresh");
|
||||
autoRefresh_1.set_select_options({
|
||||
autoRefresh_1.set_id("nm_autorefresh");
|
||||
autoRefresh_1.set_select_options({
|
||||
// Cause [unknown] problems with mail
|
||||
//30: "30 seconds",
|
||||
//60: "1 Minute",
|
||||
@ -1114,7 +1114,7 @@ var et2_nextmatch = /** @class */ (function (_super) {
|
||||
900: "15 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"));
|
||||
var defaultCheck = et2_createWidget("select", { "empty_label": "Preference" }, this);
|
||||
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_customfields : any;
|
||||
declare var et2_nextmatch_controller : any;
|
||||
declare class et2_dynheight {
|
||||
declare class et2_dynheight
|
||||
{
|
||||
constructor(_outerNode, _innerNode, _minHeight);
|
||||
outerNode : any;
|
||||
update : any;
|
||||
free : any;
|
||||
|
||||
outerNode: any;
|
||||
update: any;
|
||||
|
||||
destroy();
|
||||
}
|
||||
|
||||
declare class et2_nextmatch_rowProvider
|
||||
{
|
||||
}
|
||||
declare class et2_nextmatch_rowProvider {}
|
||||
declare var et2_nextmatch_rowWidget : any;
|
||||
declare var et2_nextmatch_rowTemplateWidget : any;
|
||||
declare var et2_ajaxSelect : any;
|
||||
|
@ -70,8 +70,8 @@ var et2_split = /** @class */ (function (_super) {
|
||||
// Destroy splitter, restore children
|
||||
this.div.trigger("destroy");
|
||||
// Destroy dynamic full-height
|
||||
this.dynheight.free();
|
||||
_super.prototype.destroy.call(this);
|
||||
this.dynheight.destroy();
|
||||
_super.prototype.destroy.call(this);
|
||||
// Remove placeholder children
|
||||
if (this._children.length == 0) {
|
||||
this.div.empty();
|
||||
|
@ -17,7 +17,7 @@ jquery.splitter;
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
/**
|
||||
@ -109,7 +109,7 @@ class et2_split extends et2_DOMWidget implements et2_IResizeable, et2_IPrint
|
||||
this.div.trigger("destroy");
|
||||
|
||||
// Destroy dynamic full-height
|
||||
this.dynheight.free();
|
||||
this.dynheight.destroy();
|
||||
|
||||
super.destroy();
|
||||
|
||||
|
@ -855,7 +855,7 @@ var et2_vfsUpload = /** @class */ (function (_super) {
|
||||
while (this._children.length > 0) {
|
||||
var node = this._children[this._children.length - 1];
|
||||
this.removeChild(node);
|
||||
node.free();
|
||||
node.destroy();
|
||||
}
|
||||
this.progress.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--) {
|
||||
var child = this._children[child_index];
|
||||
if (child.options.value.path === file_data.path) {
|
||||
this.removeChild(child);
|
||||
child.free();
|
||||
this.removeChild(child);
|
||||
child.destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -976,9 +976,9 @@ class et2_vfsUpload extends et2_file
|
||||
// Remove previous
|
||||
while(this._children.length > 0)
|
||||
{
|
||||
var node = this._children[this._children.length-1];
|
||||
var node = this._children[this._children.length - 1];
|
||||
this.removeChild(node);
|
||||
node.free();
|
||||
node.destroy();
|
||||
}
|
||||
this.progress.empty();
|
||||
this.list.empty();
|
||||
@ -1058,7 +1058,7 @@ class et2_vfsUpload extends et2_file
|
||||
if(child.options.value.path === file_data.path)
|
||||
{
|
||||
this.removeChild(child);
|
||||
child.free();
|
||||
child.destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ widget_browser.prototype.select_widget = function(e,f)
|
||||
if(this.widget)
|
||||
{
|
||||
this.et2.widgetContainer.removeChild(this.widget);
|
||||
this.widget.free();
|
||||
this.widget.destroy();
|
||||
this.widget = null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user