mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Try to fix navigation issues in file select popup
This commit is contained in:
parent
895b1ebee9
commit
22f498d6e2
@ -1144,6 +1144,8 @@ var et2_vfsSelect = /** @class */ (function (_super) {
|
|||||||
resizable: false
|
resizable: false
|
||||||
}, et2_widget_dialog_1.et2_dialog._create_parent('api'));
|
}, et2_widget_dialog_1.et2_dialog._create_parent('api'));
|
||||||
this.dialog.template.uniqueId = 'api.vfsSelectUI';
|
this.dialog.template.uniqueId = 'api.vfsSelectUI';
|
||||||
|
app.vfsSelectUI.et2 = this.dialog.template.widgetContainer;
|
||||||
|
app.vfsSelectUI.vfsSelectWidget = this;
|
||||||
// Don't rely only on app_name to fetch et2 object as app_name may not
|
// Don't rely only on app_name to fetch et2 object as app_name may not
|
||||||
// always represent current app of the window, e.g.: mail admin account.
|
// always represent current app of the window, e.g.: mail admin account.
|
||||||
// Try to fetch et2 from its template name.
|
// Try to fetch et2 from its template name.
|
||||||
@ -1159,10 +1161,8 @@ var et2_vfsSelect = /** @class */ (function (_super) {
|
|||||||
// widgets and since we can not have a etemplate_exec_id specifically
|
// widgets and since we can not have a etemplate_exec_id specifically
|
||||||
// for dialog template our best shot is to inherit its parent etemplate_exec_id.
|
// for dialog template our best shot is to inherit its parent etemplate_exec_id.
|
||||||
this.dialog.template.etemplate_exec_id = et2.etemplate_exec_id;
|
this.dialog.template.etemplate_exec_id = et2.etemplate_exec_id;
|
||||||
app.vfsSelectUI.et2 = this.dialog.template.widgetContainer;
|
|
||||||
// Keep the dialog always at the top
|
// Keep the dialog always at the top
|
||||||
this.dialog.div.parent().css({ "z-index": 100000 });
|
this.dialog.div.parent().css({ "z-index": 100000 });
|
||||||
app.vfsSelectUI.vfsSelectWidget = this;
|
|
||||||
this.dialog.div.on('load', function (e) {
|
this.dialog.div.on('load', function (e) {
|
||||||
app.vfsSelectUI.et2_ready(app.vfsSelectUI.et2, 'api.vfsSelectUI');
|
app.vfsSelectUI.et2_ready(app.vfsSelectUI.et2, 'api.vfsSelectUI');
|
||||||
});
|
});
|
||||||
|
@ -1398,6 +1398,8 @@ export class et2_vfsSelect extends et2_inputWidget
|
|||||||
resizable: false
|
resizable: false
|
||||||
}, et2_dialog._create_parent('api'));
|
}, et2_dialog._create_parent('api'));
|
||||||
this.dialog.template.uniqueId = 'api.vfsSelectUI';
|
this.dialog.template.uniqueId = 'api.vfsSelectUI';
|
||||||
|
app.vfsSelectUI.et2 = this.dialog.template.widgetContainer;
|
||||||
|
app.vfsSelectUI.vfsSelectWidget = this;
|
||||||
|
|
||||||
// Don't rely only on app_name to fetch et2 object as app_name may not
|
// Don't rely only on app_name to fetch et2 object as app_name may not
|
||||||
// always represent current app of the window, e.g.: mail admin account.
|
// always represent current app of the window, e.g.: mail admin account.
|
||||||
@ -1417,10 +1419,8 @@ export class et2_vfsSelect extends et2_inputWidget
|
|||||||
// for dialog template our best shot is to inherit its parent etemplate_exec_id.
|
// for dialog template our best shot is to inherit its parent etemplate_exec_id.
|
||||||
this.dialog.template.etemplate_exec_id = et2.etemplate_exec_id;
|
this.dialog.template.etemplate_exec_id = et2.etemplate_exec_id;
|
||||||
|
|
||||||
app.vfsSelectUI.et2 = this.dialog.template.widgetContainer;
|
|
||||||
// Keep the dialog always at the top
|
// Keep the dialog always at the top
|
||||||
this.dialog.div.parent().css({"z-index": 100000});
|
this.dialog.div.parent().css({"z-index": 100000});
|
||||||
app.vfsSelectUI.vfsSelectWidget = this;
|
|
||||||
this.dialog.div.on('load', function(e) {
|
this.dialog.div.on('load', function(e) {
|
||||||
app.vfsSelectUI.et2_ready(app.vfsSelectUI.et2, 'api.vfsSelectUI');
|
app.vfsSelectUI.et2_ready(app.vfsSelectUI.et2, 'api.vfsSelectUI');
|
||||||
});
|
});
|
||||||
|
@ -42,7 +42,7 @@ var vfsSelectUI = /** @class */ (function (_super) {
|
|||||||
function vfsSelectUI() {
|
function vfsSelectUI() {
|
||||||
var _this =
|
var _this =
|
||||||
// call parent
|
// call parent
|
||||||
_super.call(this) || this;
|
_super.call(this, 'vfsSelectUI') || this;
|
||||||
_this.egw.langRequireApp(_this.egw.window, 'filemanager');
|
_this.egw.langRequireApp(_this.egw.window, 'filemanager');
|
||||||
return _this;
|
return _this;
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ export class vfsSelectUI extends EgwApp
|
|||||||
constructor()
|
constructor()
|
||||||
{
|
{
|
||||||
// call parent
|
// call parent
|
||||||
super();
|
super('vfsSelectUI');
|
||||||
|
|
||||||
this.egw.langRequireApp(this.egw.window, 'filemanager');
|
this.egw.langRequireApp(this.egw.window, 'filemanager');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user