]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't update progress bar in ie < 10
authorJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 13 Mar 2013 16:38:56 +0000 (17:38 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 1 Jul 2013 17:34:59 +0000 (19:34 +0200)
apps/files/js/files.js

index 231f58900c0343bf238716d57a16ff910984cf13..65da03984f2df79afd35e34660b4389060b17058 100644 (file)
@@ -386,9 +386,10 @@ $(document).ready(function() {
                                 * @param data
                                 */
                                stop: function(e, data) {
-                                       if(data.dataType != 'iframe ') {
+                                       if(data.dataType !== 'iframe') {
                                                $('#upload input.stop').hide();
                                        }
+
                                        //IE < 10 does not fire the necessary events for the progress bar.
                                        if($.browser.msie && parseInt($.browser.version) < 10) {
                                                return;
@@ -563,6 +564,7 @@ $(document).ready(function() {
 
                                        var eventSource=new OC.EventSource(OC.filePath('files','ajax','newfile.php'),{dir:$('#dir').val(),source:name,filename:localName});
                                        eventSource.listen('progress',function(progress){
+                                               //IE < 10 does not fire the necessary events for the progress bar.
                                                if($.browser.msie && parseInt($.browser.version) < 10) {
                                                } else {
                                                        $('#uploadprogressbar').progressbar('value',progress);