mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-01 16:51:33 +01:00
fix vfs-path widget to correctly deal with smallPART paths (hierarchical structure inside entry directory)
This commit is contained in:
parent
e5b82243fc
commit
98a08ec152
@ -333,14 +333,19 @@ var et2_vfsPath = /** @class */ (function (_super) {
|
|||||||
text = this_2.egw().lang(path_parts[2]);
|
text = this_2.egw().lang(path_parts[2]);
|
||||||
image = this_2.egw().image('navbar', path_parts[2].toLowerCase());
|
image = this_2.egw().image('navbar', path_parts[2].toLowerCase());
|
||||||
}
|
}
|
||||||
else if (!isNaN(text)) {
|
else if (i === 3 && !isNaN(text)) {
|
||||||
var link_title = this_2.egw().link_title(path_parts[2], path_parts[3], function (title) {
|
// we first need to call link_title without callback, as callback would be called for cache-hits too!
|
||||||
|
var link_title = this_2.egw().link_title(path_parts[2], path_parts[3]);
|
||||||
|
if (link_title && typeof link_title !== 'undefined') {
|
||||||
|
text = link_title;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this_2.egw().link_title(path_parts[2], path_parts[3], function (title) {
|
||||||
if (!title)
|
if (!title)
|
||||||
return;
|
return;
|
||||||
jQuery('li', this.span).first().text(title);
|
jQuery('li', this.span).first().text(title);
|
||||||
}, this_2);
|
}, this_2);
|
||||||
if (link_title && typeof link_title !== 'undefined')
|
}
|
||||||
text = link_title;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var self_2 = this_2;
|
var self_2 = this_2;
|
||||||
|
@ -383,17 +383,24 @@ export class et2_vfsPath extends et2_vfsName
|
|||||||
text = this.egw().lang(path_parts[2]);
|
text = this.egw().lang(path_parts[2]);
|
||||||
image = this.egw().image('navbar',path_parts[2].toLowerCase());
|
image = this.egw().image('navbar',path_parts[2].toLowerCase());
|
||||||
}
|
}
|
||||||
else if(!isNaN(<number><unknown>text))
|
else if(i === 3 && !isNaN(<number><unknown>text))
|
||||||
{
|
{
|
||||||
let link_title = this.egw().link_title(path_parts[2],path_parts[3],
|
// we first need to call link_title without callback, as callback would be called for cache-hits too!
|
||||||
|
let link_title = this.egw().link_title(path_parts[2], path_parts[3]);
|
||||||
|
if(link_title && typeof link_title !== 'undefined')
|
||||||
|
{
|
||||||
|
text = link_title;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.egw().link_title(path_parts[2], path_parts[3],
|
||||||
function(title) {
|
function(title) {
|
||||||
if(!title) return;
|
if(!title) return;
|
||||||
jQuery('li',this.span).first().text(title);
|
jQuery('li',this.span).first().text(title);
|
||||||
}, this
|
}, this
|
||||||
);
|
);
|
||||||
if(link_title && typeof link_title !== 'undefined') text = link_title;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
let self = this;
|
let self = this;
|
||||||
let node = jQuery(document.createElement("li"))
|
let node = jQuery(document.createElement("li"))
|
||||||
@ -1575,4 +1582,3 @@ export class et2_vfsSelect extends et2_inputWidget
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
et2_register_widget(et2_vfsSelect, ["vfs-select"]);
|
et2_register_widget(et2_vfsSelect, ["vfs-select"]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user