mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 07:39:55 +09:00
Show update btn for a layout/menu/skin that's been already installed but a newer version is available.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12072 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
819b53c4ce
commit
76b239de47
2 changed files with 23 additions and 4 deletions
|
|
@ -92,9 +92,15 @@ body>.x{max-width:none !important}
|
||||||
.download a.x_icon-download-alt:hover,
|
.download a.x_icon-download-alt:hover,
|
||||||
.download a.x_icon-download-alt:focus{background-color:#333}
|
.download a.x_icon-download-alt:focus{background-color:#333}
|
||||||
.download p>i{font-style:normal;color:#ccc}
|
.download p>i{font-style:normal;color:#ccc}
|
||||||
|
|
||||||
.download .item.installed ._install{display:none}
|
.download .item.installed ._install{display:none}
|
||||||
.download .item ._already_installed{display:none}
|
.download .item ._already_installed{display:none}
|
||||||
.download .item.installed ._already_installed{display:block}
|
.download .item.installed ._already_installed{display:block}
|
||||||
|
|
||||||
|
.download .item.installed.up_to_date ._need_to_update{display:none}
|
||||||
|
.download .item.installed ._already_up_to_date{display:none}
|
||||||
|
.download .item.installed.up_to_date ._already_up_to_date{display:block}
|
||||||
|
|
||||||
/* Theme(layout|skin) */
|
/* Theme(layout|skin) */
|
||||||
.theme img{width:110px;border:1px solid #ddd}
|
.theme img{width:110px;border:1px solid #ddd}
|
||||||
.theme label{margin:0;padding:8px 0;position:relative;border-bottom:1px solid #ddd}
|
.theme label{margin:0;padding:8px 0;position:relative;border-bottom:1px solid #ddd}
|
||||||
|
|
|
||||||
|
|
@ -161,7 +161,7 @@
|
||||||
<div class="list">
|
<div class="list">
|
||||||
<script id="tmpl_downloadableMenuTypeItem" type="text/x-jquery-tmpl">
|
<script id="tmpl_downloadableMenuTypeItem" type="text/x-jquery-tmpl">
|
||||||
|
|
||||||
<div class="item ${IsInstalled}">
|
<div class="item ${IsInstalled} ${IsUpToDate}">
|
||||||
<img src="http://${ScreenShotURL}" alt="">
|
<img src="http://${ScreenShotURL}" alt="">
|
||||||
<h2>${MenuType}</h2>
|
<h2>${MenuType}</h2>
|
||||||
<p>${MenuTypeDesc}</p>
|
<p>${MenuTypeDesc}</p>
|
||||||
|
|
@ -171,7 +171,12 @@
|
||||||
<a href="#" class="x_icon-download-alt x_icon-white _install_this">설치</a>
|
<a href="#" class="x_icon-download-alt x_icon-white _install_this">설치</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="_already_installed">
|
<div class="_already_installed">
|
||||||
<span style="position: absolute;top: 7px;right: 0;">이미 설치된 항목</span>
|
<div class="_already_up_to_date">
|
||||||
|
<span style="position: absolute;top: 7px;right: 0;">이미 설치된 항목</span>
|
||||||
|
</div>
|
||||||
|
<div class="_need_to_update">
|
||||||
|
<a href="#" style="position: absolute;top: 7px;right: 0;" class="_install_this">업데이트</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -1685,7 +1690,7 @@ jQuery(function($){
|
||||||
params['shortcut_target'] = sMID;
|
params['shortcut_target'] = sMID;
|
||||||
}else{
|
}else{
|
||||||
sMID = $('#default ._mid').val();
|
sMID = $('#default ._mid').val();
|
||||||
params['module_id'] = sMID;
|
params['moudule_id'] = sMID;
|
||||||
}
|
}
|
||||||
params['menu_item_srl'] = sSelectedMenuSrl;
|
params['menu_item_srl'] = sSelectedMenuSrl;
|
||||||
params['menu_name'] = sMenuName;
|
params['menu_name'] = sMenuName;
|
||||||
|
|
@ -2111,13 +2116,19 @@ jQuery(function($){
|
||||||
$Panel.find('.list').html("");
|
$Panel.find('.list').html("");
|
||||||
|
|
||||||
var item;
|
var item;
|
||||||
var $node, sIsInstalled;
|
var $node, sIsInstalled, sIsUpToDate;
|
||||||
if(htData.item_list){
|
if(htData.item_list){
|
||||||
for(var i=0, nLen=htData.item_list.length; i<nLen; i++){
|
for(var i=0, nLen=htData.item_list.length; i<nLen; i++){
|
||||||
item = htData.item_list[i];
|
item = htData.item_list[i];
|
||||||
|
|
||||||
if(item.current_version){
|
if(item.current_version){
|
||||||
sIsInstalled = "installed";
|
sIsInstalled = "installed";
|
||||||
|
|
||||||
|
if(item.need_update === "N"){
|
||||||
|
sIsUpToDate = "up_to_date";
|
||||||
|
}else{
|
||||||
|
sIsUpToDate = "";
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
sIsInstalled = "";
|
sIsInstalled = "";
|
||||||
}
|
}
|
||||||
|
|
@ -2130,6 +2141,7 @@ jQuery(function($){
|
||||||
TotalVotes: item.package_voted,
|
TotalVotes: item.package_voted,
|
||||||
LastUpdated: formatUpdatedDate(item.item_regdate),
|
LastUpdated: formatUpdatedDate(item.item_regdate),
|
||||||
TotalDownloads: item.package_downloaded,
|
TotalDownloads: item.package_downloaded,
|
||||||
|
IsUpToDate: sIsUpToDate,
|
||||||
IsInstalled: sIsInstalled
|
IsInstalled: sIsInstalled
|
||||||
} ).data('sItemType', sItemType).data('sPackageSrl', item.package_srl);
|
} ).data('sItemType', sItemType).data('sPackageSrl', item.package_srl);
|
||||||
|
|
||||||
|
|
@ -3141,6 +3153,7 @@ exec_xml("module","procModuleAdminSetDesignInfo", params, completeTmp)
|
||||||
console.log(htData);
|
console.log(htData);
|
||||||
|
|
||||||
$item.addClass('installed');
|
$item.addClass('installed');
|
||||||
|
$item.addClass('up_to_date');
|
||||||
htFunc[sPackageType]();
|
htFunc[sPackageType]();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue