]> source.dussan.org Git - nextcloud-server.git/commitdiff
moved from html to $('html') to fix unit tests
authorRoeland Jago Douma <roeland@famdouma.nl>
Thu, 16 Apr 2015 13:53:51 +0000 (15:53 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 17 Apr 2015 07:38:09 +0000 (09:38 +0200)
core/js/share.js

index 45c8889c950fc70d288e97763ed6978e64b3f065..45873ca870efd3b018db35a44033f6d27882dc59 100644 (file)
@@ -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');