Merge pull request #11594 from owncloud/sharing_toggle_password

set password field placeholder back if passward was disabled
This commit is contained in:
Morris Jobke 2014-10-17 11:32:29 +02:00
commit eceb1d03cb
1 changed files with 1 additions and 0 deletions

View File

@ -1025,6 +1025,7 @@ $(document).ready(function() {
$loading.removeClass('hidden');
OC.Share.share(itemType, itemSource, OC.Share.SHARE_TYPE_LINK, '', permissions, itemSourceName).then(function() {
$loading.addClass('hidden');
$('#linkPassText').attr('placeholder', t('core', 'Choose a password for the public link'));
});
} else {
$('#linkPassText').focus();