forked from OpenNeo/impress
fix console detection, move preview enable outside of pet set as current
This commit is contained in:
parent
a7ca99d7d8
commit
a8da0298f7
1 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,7 @@ var PREVIEW_SWF_ID = 'item-preview-swf',
|
||||||
speciesList = $('#item-preview a'),
|
speciesList = $('#item-preview a'),
|
||||||
MainWardrobe;
|
MainWardrobe;
|
||||||
|
|
||||||
if(console === undefined || console.log === undefined) {
|
if(typeof console == 'undefined' || typeof console.log == 'undefined') {
|
||||||
function log() {}
|
function log() {}
|
||||||
} else {
|
} else {
|
||||||
log = $.proxy(console, 'log');
|
log = $.proxy(console, 'log');
|
||||||
|
@ -74,7 +74,6 @@ function PetType() {
|
||||||
speciesList.filter('.current').removeClass('current');
|
speciesList.filter('.current').removeClass('current');
|
||||||
this.link.addClass('current');
|
this.link.addClass('current');
|
||||||
if(this.activated) {
|
if(this.activated) {
|
||||||
Preview.enable();
|
|
||||||
this.load();
|
this.load();
|
||||||
} else {
|
} else {
|
||||||
showDeactivationMsg();
|
showDeactivationMsg();
|
||||||
|
@ -248,6 +247,8 @@ speciesList.each(function () {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Preview.enable();
|
||||||
|
|
||||||
setTimeout($.proxy(Item.current, 'loadAllStandard'), 5000);
|
setTimeout($.proxy(Item.current, 'loadAllStandard'), 5000);
|
||||||
|
|
||||||
MainWardrobe = { View: { Outfit: Preview } };
|
MainWardrobe = { View: { Outfit: Preview } };
|
||||||
|
|
Loading…
Reference in a new issue