mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
skin setup panel
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12385 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
163c1c0e64
commit
65d7f1e2d1
1 changed files with 18 additions and 10 deletions
|
|
@ -2563,6 +2563,7 @@ jQuery(function($){
|
|||
sLayoutTitle : sLayoutTitle,
|
||||
sSkinName : sSkinName,
|
||||
sSkinTitle : sSkinTitle,
|
||||
sTmpSkinName : "",
|
||||
htData : {}
|
||||
};
|
||||
|
||||
|
|
@ -3453,8 +3454,8 @@ jQuery(function($){
|
|||
$ChkBox.removeAttr('checked');
|
||||
}
|
||||
|
||||
//updateSkinListDisplayStatus();
|
||||
$('#skin .list').show();
|
||||
//updateSkinListDisplayStatus();
|
||||
});
|
||||
$('#skin').on('hide', function(ev){
|
||||
if(this !== ev.target){
|
||||
|
|
@ -3477,22 +3478,21 @@ jQuery(function($){
|
|||
$ChkBox = $('#skin ._chkUseDefault');
|
||||
|
||||
var htDesign = $._xeAdminVar.htSelectedMenuDesign;
|
||||
|
||||
if($ChkBox.is(':visible') && $ChkBox.attr('checked')){
|
||||
htDesign.sTmpSkinName = htDesign.sSkinName;
|
||||
|
||||
htDesign.sSkinName = "";
|
||||
htDesign.sSkinTitle = "";
|
||||
|
||||
$('#skin .list').addClass('disabled');
|
||||
$ChkBox.parent().css('fontWeight','bold');
|
||||
//$('#skin .list').hide();
|
||||
//.//
|
||||
|
||||
updateSelectedDesign(htDesign);
|
||||
}else{
|
||||
|
||||
$('#skin .list').removeClass('disabled');
|
||||
$ChkBox.parent().css('fontWeight','normal');
|
||||
|
||||
//$('#skin .list').show();
|
||||
|
||||
$('#skin .list .selected').click();
|
||||
}
|
||||
}
|
||||
// sType: "P", "M" (PC/Mobile)
|
||||
|
|
@ -3533,9 +3533,10 @@ jQuery(function($){
|
|||
//console.log(htDesign.sSkinName);
|
||||
|
||||
// if nothing is selected, select the first one.
|
||||
sTmpName = htDesign.sSkinName || htDesign.sTmpSkinName;
|
||||
if(sTmpName == ""){
|
||||
htDesign.sSkinName = sName;
|
||||
sTmpName = htDesign.sTmpSkinName || sName;
|
||||
//console.log(22, sTmpName);
|
||||
if(!htDesign.sSkinName){
|
||||
htDesign.sSkinName = sTmpName;
|
||||
}
|
||||
|
||||
htInfo = htData.skin_info_list[sName];
|
||||
|
|
@ -3544,7 +3545,10 @@ jQuery(function($){
|
|||
htInfo.sTitle = htInfo.title;
|
||||
|
||||
sSelected = "";
|
||||
//console.log(33, sTmpName, sName, htDesign.sSkinName, htInfo.sName);
|
||||
if(htDesign.sSkinName == htInfo.sName){
|
||||
//htDesign.sTmpSkinName = "";
|
||||
|
||||
sSelectedSkinName = htInfo.sName;
|
||||
sSelectedSkinTitle = htInfo.sTitle;
|
||||
sSelected = "selected";
|
||||
|
|
@ -3557,6 +3561,8 @@ jQuery(function($){
|
|||
SkinName : htInfo.sName
|
||||
}).data('SkinName', htInfo.sName).data('SkinTitle', htInfo.sTitle));
|
||||
}
|
||||
//console.log(sSelectedSkinName);
|
||||
|
||||
$List.find('.selected input').attr('checked', 'checked');
|
||||
//console.log(sSelectedSrl);
|
||||
|
||||
|
|
@ -3564,6 +3570,8 @@ jQuery(function($){
|
|||
htDesign.sSkinTitle = sSelectedSkinTitle;
|
||||
htDesign.htSkinData = {};
|
||||
updateSelectedDesign(htDesign);
|
||||
|
||||
updateSkinListDisplayStatus();
|
||||
});
|
||||
}
|
||||
$('#skin').on('click', 'button._btnScreenshot', function(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue