diff --git a/api/js/etemplate/et2_extension_nextmatch.js b/api/js/etemplate/et2_extension_nextmatch.js index 979bea4e5e..91177cea4c 100644 --- a/api/js/etemplate/et2_extension_nextmatch.js +++ b/api/js/etemplate/et2_extension_nextmatch.js @@ -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'); diff --git a/api/js/etemplate/et2_types.d.ts b/api/js/etemplate/et2_types.d.ts index dea3639aca..1523f22a8a 100644 --- a/api/js/etemplate/et2_types.d.ts +++ b/api/js/etemplate/et2_types.d.ts @@ -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; diff --git a/api/js/etemplate/et2_widget_split.js b/api/js/etemplate/et2_widget_split.js index b70c53845e..6a18468590 100644 --- a/api/js/etemplate/et2_widget_split.js +++ b/api/js/etemplate/et2_widget_split.js @@ -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(); diff --git a/api/js/etemplate/et2_widget_split.ts b/api/js/etemplate/et2_widget_split.ts index f0d661cd03..1f0dd31426 100644 --- a/api/js/etemplate/et2_widget_split.ts +++ b/api/js/etemplate/et2_widget_split.ts @@ -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(); diff --git a/api/js/etemplate/et2_widget_vfs.js b/api/js/etemplate/et2_widget_vfs.js index 7be5d7bfe1..0ab9ca2800 100644 --- a/api/js/etemplate/et2_widget_vfs.js +++ b/api/js/etemplate/et2_widget_vfs.js @@ -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(); } } } diff --git a/api/js/etemplate/et2_widget_vfs.ts b/api/js/etemplate/et2_widget_vfs.ts index f1e539dae6..1bfd4a1089 100644 --- a/api/js/etemplate/et2_widget_vfs.ts +++ b/api/js/etemplate/et2_widget_vfs.ts @@ -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(); } } } diff --git a/api/js/etemplate/widget_browser.js b/api/js/etemplate/widget_browser.js index 6832e71700..37bfd9bcb2 100644 --- a/api/js/etemplate/widget_browser.js +++ b/api/js/etemplate/widget_browser.js @@ -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; }