missing js files for 21.1 from "implement some missing features from old eTemplate"

This commit is contained in:
Ralf Becker 2021-08-23 15:11:04 +02:00
parent 0463b796ce
commit 101728414d
2 changed files with 7 additions and 1 deletions

View File

@ -366,7 +366,7 @@ var et2_grid = /** @class */ (function (_super) {
}
// Apply widget's class to td, for backward compatability
if (node.getAttribute("class")) {
cell.class += (cell.class ? " " : "") + node.getAttribute("class");
cell.class += (cell.class ? " " : "") + this.getArrayMgr("content").expandName(node.getAttribute("class"));
}
// Create the element
if (!cell.disabled || cell.disabled && typeof cell.disabled === 'string') {

View File

@ -783,6 +783,12 @@ var et2_link_entry = /** @class */ (function (_super) {
};
}
}
// display a search query, not a selected entry
else if (_value !== null && typeof _value === 'object' && typeof _value.query === 'string') {
this.options.value = { app: _value.app || this.options.only_app, id: null };
this.search.val(_value.query);
return;
}
this._oldValue = this.options.value;
if (!_value || _value.length == 0 || _value == null || jQuery.isEmptyObject(_value)) {
this.search.val("");