Fix null reference in IE
This commit is contained in:
parent
bded787d0c
commit
28c192c9f5
1 changed files with 6 additions and 6 deletions
|
@ -196,13 +196,13 @@ OC.Settings.Apps = OC.Settings.Apps || {
|
||||||
if (app.preview && !OC.Util.isIE()) {
|
if (app.preview && !OC.Util.isIE()) {
|
||||||
var currentImage = new Image();
|
var currentImage = new Image();
|
||||||
currentImage.src = app.preview;
|
currentImage.src = app.preview;
|
||||||
}
|
|
||||||
|
|
||||||
currentImage.onload = function() {
|
currentImage.onload = function() {
|
||||||
page.find('.app-image')
|
page.find('.app-image')
|
||||||
.append(OC.Settings.Apps.imageUrl(app.preview, app.detailpage))
|
.append(OC.Settings.Apps.imageUrl(app.preview, app.detailpage))
|
||||||
.fadeIn();
|
.fadeIn();
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
// set group select properly
|
// set group select properly
|
||||||
if(OC.Settings.Apps.isType(app, 'filesystem') || OC.Settings.Apps.isType(app, 'prelogin') ||
|
if(OC.Settings.Apps.isType(app, 'filesystem') || OC.Settings.Apps.isType(app, 'prelogin') ||
|
||||||
|
|
Loading…
Reference in a new issue