diff --git a/core/js/share.js b/core/js/share.js index 45c8889c95..45873ca870 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -1013,7 +1013,7 @@ $(document).ready(function() { } else { $('#linkPass').slideToggle(OC.menuSpeed); // TODO drop with IE8 drop - if(html.hasClass('ie8')) { + if($('html').hasClass('ie8')) { $('#linkPassText').attr('placeholder', null); $('#linkPassText').val(''); } @@ -1120,7 +1120,6 @@ $(document).ready(function() { $(document).on('focusout keyup', '#dropdown #linkPassText', function(event) { var linkPassText = $('#linkPassText'); if ( linkPassText.val() != '' && (event.type == 'focusout' || event.keyCode == 13) ) { - var allowPublicUpload = $('#sharingDialogAllowPublicUpload').is(':checked'); var dropDown = $('#dropdown'); var itemType = dropDown.data('item-type');