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

View file

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