]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix null reference in IE 912/head
authorMorris Jobke <hey@morrisjobke.de>
Wed, 17 Aug 2016 14:04:53 +0000 (16:04 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 17 Aug 2016 14:27:18 +0000 (16:27 +0200)
settings/js/apps.js

index 89b446ed3b94f52a12334a5c579af89f36f843a5..ac259dd7989be0edd29e0b31be480f98fe467564 100644 (file)
@@ -196,13 +196,13 @@ OC.Settings.Apps = OC.Settings.Apps || {
                if (app.preview && !OC.Util.isIE()) {
                        var currentImage = new Image();
                        currentImage.src = app.preview;
-               }
 
-               currentImage.onload = function() {
-                       page.find('.app-image')
-                               .append(OC.Settings.Apps.imageUrl(app.preview, app.detailpage))
-                               .fadeIn();
-               };
+                       currentImage.onload = function() {
+                               page.find('.app-image')
+                                       .append(OC.Settings.Apps.imageUrl(app.preview, app.detailpage))
+                                       .fadeIn();
+                       };
+               }
 
                // set group select properly
                if(OC.Settings.Apps.isType(app, 'filesystem') || OC.Settings.Apps.isType(app, 'prelogin') ||