mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:03:59 -06:00
FIX: Some bug in modelinfo webpage
Change-Id: I182fd0006f92975018012cb52a7093373153f80e (cherry picked from commit c8341df9b548c0eed8769cb6b6dc80aab10b8827)
This commit is contained in:
parent
61b271f379
commit
223291452b
4 changed files with 45 additions and 11 deletions
|
@ -203,7 +203,7 @@ function ShowModelInfo( pModel )
|
|||
//==========Model Info==========
|
||||
let sModelName=decodeURIComponent(pModel.name);
|
||||
let sModelAuthor=decodeURIComponent(pModel.author);
|
||||
let UploadType=pModel.upload_type.toUpperCase();
|
||||
let UploadType=pModel.upload_type.toLowerCase();
|
||||
let sLicence=pModel.license.toUpperCase();
|
||||
let sModelDesc=decodeURIComponent(pModel.description);
|
||||
|
||||
|
@ -215,15 +215,15 @@ function ShowModelInfo( pModel )
|
|||
switch(UploadType)
|
||||
{
|
||||
case 'remix':
|
||||
$('#ModelAthorType').attr('tid','t93');
|
||||
$('#ModelAuthorType').attr('tid','t93');
|
||||
break;
|
||||
case 'shared':
|
||||
$('#ModelAthorType').attr('tid','t94');
|
||||
$('#ModelAuthorType').attr('tid','t94');
|
||||
break;
|
||||
case 'origin':
|
||||
case 'profile':
|
||||
default:
|
||||
$('#ModelAthorType').attr('tid','t92');
|
||||
$('#ModelAuthorType').attr('tid','t92');
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -329,11 +329,11 @@ function ShowModelInfo( pModel )
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
$('#Model_Preview_Image').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#ModelPreviewList').hide();
|
||||
$('#Model_Preview_Image').hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -465,6 +465,9 @@ function ConstructFileHtml( ID, pItem )
|
|||
}
|
||||
|
||||
$('#'+ID+' .FileListBoard').html(strHtml);
|
||||
|
||||
if( fTotal>0 )
|
||||
$('#'+ID).show();
|
||||
}
|
||||
|
||||
|
||||
|
@ -543,10 +546,12 @@ function ShowProfilelInfo( pProfile )
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('#Profile_Preview_Image').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#ProfilePreviewList').hide();
|
||||
$('#Profile_Preview_Image').hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue