mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Give warning for document delete action in filemanager editor
This commit is contained in:
parent
5c3bd11366
commit
4c6a499b5b
@ -1224,9 +1224,23 @@ app.classes.filemanager = AppJS.extend(
|
|||||||
var selected = fullpath.split('/');
|
var selected = fullpath.split('/');
|
||||||
selected.pop();
|
selected.pop();
|
||||||
var path = selected.join('/');
|
var path = selected.join('/');
|
||||||
this._do_action('delete', [fullpath], false, path);
|
var self =this;
|
||||||
|
|
||||||
this.editor_close(_egwAction);
|
et2_dialog.show_dialog(
|
||||||
|
function(_btn)
|
||||||
|
{
|
||||||
|
if (_btn == 2)
|
||||||
|
{
|
||||||
|
self._do_action('delete', [fullpath], false, path);
|
||||||
|
self.editor_close(_egwAction);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
egw.lang('Delete file %1?', path),
|
||||||
|
'Delete file',
|
||||||
|
null,
|
||||||
|
et2_dialog.BUTTONS_YES_NO,
|
||||||
|
et2_dialog.WARNING_MESSAGE
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user