-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebdav.js
More file actions
19 lines (19 loc) · 716 Bytes
/
webdav.js
File metadata and controls
19 lines (19 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
jQuery(document).ready(function($) {
$('.fileList tr').click(function(el) {
console.log($(this).text());
// $('input[name="endpoint"]').val($(this).text());
$('input[name="endpoint"]').val($(this).data('endpoint'));
$('select[name="task"]').val('getlistFilesArray');
$('#adminForm').submit();
});
$('#unlockFile').click(function(el) {
$('select[name="task"]').val('unlock');
if ($('input[name="altUserEntry"]').val().length) {
$('input[name="altUsername"]').val($('input[name="altUserEntry"]').val());
}
if ($('input[name="altPassEntry"]').val().length) {
$('input[name="altPassword"]').val($('input[name="altPassEntry"]').val());
}
$('#adminForm').submit();
});
});