mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 12:02:24 +09:00
added thumbnail to the delete confirm dialog
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12343 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a01bfdc22c
commit
df60ac70b5
1 changed files with 13 additions and 6 deletions
|
|
@ -419,7 +419,7 @@
|
||||||
<li class="${Selected} _layoutItem">
|
<li class="${Selected} _layoutItem">
|
||||||
<label><input type="radio" name="layout_item" title="${Title}"> ${Title}</label>
|
<label><input type="radio" name="layout_item" title="${Title}"> ${Title}</label>
|
||||||
<button type="button" class="item _btnScreenshot" title="{$lang->about_apply_layout}">
|
<button type="button" class="item _btnScreenshot" title="{$lang->about_apply_layout}">
|
||||||
<img src="${ScreenShotURL}">
|
<img src="${ScreenShotURL}" class="_thumbnail">
|
||||||
</button>
|
</button>
|
||||||
<ul class="_edit_menu">
|
<ul class="_edit_menu">
|
||||||
<li><a href="#layoutSetup" data-admin-show="#layoutSetup" data-param='{ "sLayoutSrl":"${LayoutSrl}"}'>{$lang->full_settings} <i class="x_icon-circle-arrow-right"></i></a></li>
|
<li><a href="#layoutSetup" data-admin-show="#layoutSetup" data-param='{ "sLayoutSrl":"${LayoutSrl}"}'>{$lang->full_settings} <i class="x_icon-circle-arrow-right"></i></a></li>
|
||||||
|
|
@ -3115,13 +3115,20 @@ console.log(11, htDesign.htLayoutSrl.P);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#layout').on('click', 'button._deleteLayout', function(){
|
$('#layout').on('click', 'button._deleteLayout', function(){
|
||||||
var sLayoutSrl = $(this).closest('li._layoutItem').data('LayoutSrl');
|
var $item = $($(this).closest('li._layoutItem'));
|
||||||
//console.log();
|
var sLayoutSrl = $item.data('LayoutSrl');
|
||||||
//./getLayoutInstanceListForJSONP
|
var $thumbnail = $item.find('img._thumbnail').clone();
|
||||||
|
var $label = $item.find('label');
|
||||||
|
|
||||||
|
$thumbnail.css('width', '110px');
|
||||||
|
$thumbnail.css('height', '78px');
|
||||||
|
$thumbnail.css('border', '1px solid #888');
|
||||||
|
$thumbnail.css('padding', '3px');
|
||||||
|
|
||||||
confirmDialog({
|
confirmDialog({
|
||||||
sTitle : xe.lang.confirm_delete,
|
sTitle : xe.lang.confirm_delete,
|
||||||
|
|
||||||
sText : '',
|
sText : $thumbnail.outerHTML() + '<div style="float:right;width:240px;text-align:left">' + $label.text() + '</div>',
|
||||||
|
|
||||||
bSmall: true,
|
bSmall: true,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue