mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-03 03:50:13 +01:00
Etemplate: fix for better behaviour if lazy-update pref is not set
This commit is contained in:
parent
1ec5e962be
commit
45098fc654
@ -480,7 +480,7 @@ var et2_nextmatch = /** @class */ (function (_super) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Make some changes in what we're doing based on preference
|
// Make some changes in what we're doing based on preference
|
||||||
var update_pref = egw.preference("lazy-update");
|
var update_pref = egw.preference("lazy-update") || 'lazy';
|
||||||
if (_type == et2_nextmatch.UPDATE && !this.is_sorted_by_modified()) {
|
if (_type == et2_nextmatch.UPDATE && !this.is_sorted_by_modified()) {
|
||||||
_type = update_pref == "lazy" ? et2_nextmatch.UPDATE_IN_PLACE : et2_nextmatch.EDIT;
|
_type = update_pref == "lazy" ? et2_nextmatch.UPDATE_IN_PLACE : et2_nextmatch.EDIT;
|
||||||
}
|
}
|
||||||
@ -623,7 +623,7 @@ var et2_nextmatch = /** @class */ (function (_super) {
|
|||||||
et2_nextmatch.prototype.refresh_add = function (uid, type) {
|
et2_nextmatch.prototype.refresh_add = function (uid, type) {
|
||||||
if (type === void 0) { type = et2_nextmatch.ADD; }
|
if (type === void 0) { type = et2_nextmatch.ADD; }
|
||||||
var _a, _b;
|
var _a, _b;
|
||||||
var index = egw.preference("lazy-update") == "lazy" ? 0 :
|
var index = egw.preference("lazy-update") !== "exact" ? 0 :
|
||||||
(this.is_sorted_by_modified() ? 0 : false);
|
(this.is_sorted_by_modified() ? 0 : false);
|
||||||
// No add, do a full refresh
|
// No add, do a full refresh
|
||||||
if (index === false) {
|
if (index === false) {
|
||||||
|
@ -751,7 +751,7 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Make some changes in what we're doing based on preference
|
// Make some changes in what we're doing based on preference
|
||||||
let update_pref = egw.preference("lazy-update");
|
let update_pref = egw.preference("lazy-update") || 'lazy';
|
||||||
if(_type == et2_nextmatch.UPDATE && !this.is_sorted_by_modified())
|
if(_type == et2_nextmatch.UPDATE && !this.is_sorted_by_modified())
|
||||||
{
|
{
|
||||||
_type = update_pref == "lazy" ? et2_nextmatch.UPDATE_IN_PLACE : et2_nextmatch.EDIT;
|
_type = update_pref == "lazy" ? et2_nextmatch.UPDATE_IN_PLACE : et2_nextmatch.EDIT;
|
||||||
@ -923,7 +923,7 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
|
|||||||
*/
|
*/
|
||||||
protected refresh_add(uid:string, type = et2_nextmatch.ADD)
|
protected refresh_add(uid:string, type = et2_nextmatch.ADD)
|
||||||
{
|
{
|
||||||
let index : boolean | number = egw.preference("lazy-update") == "lazy" ? 0 :
|
let index : boolean | number = egw.preference("lazy-update") !== "exact" ? 0 :
|
||||||
(this.is_sorted_by_modified() ? 0 : false);
|
(this.is_sorted_by_modified() ? 0 : false);
|
||||||
|
|
||||||
// No add, do a full refresh
|
// No add, do a full refresh
|
||||||
|
Loading…
Reference in New Issue
Block a user