diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-04-16 15:53:51 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-04-17 09:38:09 +0200 |
commit | 595adfd193734bd24adfd26c235b5a2c1bb03099 (patch) | |
tree | c7e9cc6a93e7d760481e70cb37aad964dd64ff24 /core/js | |
parent | c456f5dee15a94450c20e27f9c22f86c1c7e554d (diff) | |
download | nextcloud-server-595adfd193734bd24adfd26c235b5a2c1bb03099.tar.gz nextcloud-server-595adfd193734bd24adfd26c235b5a2c1bb03099.zip |
moved from html to $('html') to fix unit tests
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/share.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/js/share.js b/core/js/share.js index 45c8889c950..45873ca870e 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'); |