mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 20:01:36 +02:00
missing filemanager/app.ts/js
This commit is contained in:
parent
06907d040b
commit
d76b214e2c
@ -22,6 +22,7 @@ var __extends = (this && this.__extends) || (function () {
|
|||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.filemanagerAPP = void 0;
|
||||||
/*egw:uses
|
/*egw:uses
|
||||||
/api/js/jsapi/egw_app.js;
|
/api/js/jsapi/egw_app.js;
|
||||||
*/
|
*/
|
||||||
@ -305,7 +306,7 @@ var filemanagerAPP = /** @class */ (function (_super) {
|
|||||||
var widget = _event.data;
|
var widget = _event.data;
|
||||||
var value = widget.getValue();
|
var value = widget.getValue();
|
||||||
value.conflict = _conflict;
|
value.conflict = _conflict;
|
||||||
egw.json(_target, ['upload', value, _path], this._upload_callback, this, true, this).sendRequest();
|
egw.json(_target, ['upload', value, _path, this.egw.window.location.pathname], this._upload_callback, this, true, this).sendRequest();
|
||||||
widget.set_value('');
|
widget.set_value('');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -929,8 +930,8 @@ var filemanagerAPP = /** @class */ (function (_super) {
|
|||||||
* @param {et2_widget} widget
|
* @param {et2_widget} widget
|
||||||
*/
|
*/
|
||||||
filemanagerAPP.prototype.select_clicked = function (event, widget) {
|
filemanagerAPP.prototype.select_clicked = function (event, widget) {
|
||||||
var _a, _b;
|
var _a;
|
||||||
if ((_b = (_a = widget) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.is_dir) {
|
if ((_a = widget === null || widget === void 0 ? void 0 : widget.value) === null || _a === void 0 ? void 0 : _a.is_dir) {
|
||||||
var path_1 = null;
|
var path_1 = null;
|
||||||
// Cannot do this, there are multiple widgets named path
|
// Cannot do this, there are multiple widgets named path
|
||||||
// widget.getRoot().getWidgetById("path");
|
// widget.getRoot().getWidgetById("path");
|
||||||
@ -1068,11 +1069,10 @@ var filemanagerAPP = /** @class */ (function (_super) {
|
|||||||
* Needs to be a directory
|
* Needs to be a directory
|
||||||
*/
|
*/
|
||||||
filemanagerAPP.prototype.hidden_upload_enabled = function (_action, _senders) {
|
filemanagerAPP.prototype.hidden_upload_enabled = function (_action, _senders) {
|
||||||
var _a;
|
|
||||||
if (_senders[0].id == 'nm')
|
if (_senders[0].id == 'nm')
|
||||||
return false;
|
return false;
|
||||||
var data = egw.dataGetUIDdata(_senders[0].id);
|
var data = egw.dataGetUIDdata(_senders[0].id);
|
||||||
var readonly = (((_a = data) === null || _a === void 0 ? void 0 : _a.data.class) || '').split(/ +/).indexOf('noEdit') >= 0;
|
var readonly = ((data === null || data === void 0 ? void 0 : data.data.class) || '').split(/ +/).indexOf('noEdit') >= 0;
|
||||||
// symlinks dont have mime 'http/unix-directory', but server marks all directories with class 'isDir'
|
// symlinks dont have mime 'http/unix-directory', but server marks all directories with class 'isDir'
|
||||||
return (!_senders[0].id || data.data.is_dir && !readonly);
|
return (!_senders[0].id || data.data.is_dir && !readonly);
|
||||||
};
|
};
|
||||||
|
@ -349,7 +349,7 @@ export class filemanagerAPP extends EgwApp
|
|||||||
let widget = _event.data;
|
let widget = _event.data;
|
||||||
let value = widget.getValue();
|
let value = widget.getValue();
|
||||||
value.conflict = _conflict;
|
value.conflict = _conflict;
|
||||||
egw.json(_target, ['upload', value, _path],
|
egw.json(_target, ['upload', value, _path, this.egw.window.location.pathname],
|
||||||
this._upload_callback, this, true, this
|
this._upload_callback, this, true, this
|
||||||
).sendRequest();
|
).sendRequest();
|
||||||
widget.set_value('');
|
widget.set_value('');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user