mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
set password if user leaves password field (issue #57)
This commit is contained in:
parent
bfb8436ca2
commit
10e45481be
1 changed files with 7 additions and 9 deletions
|
|
@ -475,15 +475,13 @@ $(document).ready(function() {
|
|||
$('#linkPass').toggle('blind');
|
||||
});
|
||||
|
||||
$('#linkPassText').live('keyup', function(event) {
|
||||
if (event.keyCode == 13) {
|
||||
var itemType = $('#dropdown').data('item-type');
|
||||
var itemSource = $('#dropdown').data('item-source');
|
||||
OC.Share.share(itemType, itemSource, OC.Share.SHARE_TYPE_LINK, $(this).val(), OC.PERMISSION_READ, function() {
|
||||
$('#linkPassText').val('');
|
||||
$('#linkPassText').attr('placeholder', t('core', 'Password protected'));
|
||||
});
|
||||
}
|
||||
$('#linkPassText').live('focusout', function(event) {
|
||||
var itemType = $('#dropdown').data('item-type');
|
||||
var itemSource = $('#dropdown').data('item-source');
|
||||
OC.Share.share(itemType, itemSource, OC.Share.SHARE_TYPE_LINK, $(this).val(), OC.PERMISSION_READ, function() {
|
||||
$('#linkPassText').val('');
|
||||
$('#linkPassText').attr('placeholder', t('core', 'Password protected'));
|
||||
});
|
||||
});
|
||||
|
||||
$('#expirationCheckbox').live('click', function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue