make Asset Helpers panel pretty

This commit is contained in:
Doug Bell 2010-07-15 17:32:22 -05:00
parent 2e1589121a
commit adfa7be45a
3 changed files with 19 additions and 3 deletions

View file

@ -361,11 +361,11 @@ __DATA__
</div></dd>
<!-- placeholder for asset helpers -->
<dt id="assetHelpers" class="a-m-t">Asset Helpers (i18n)</dt>
<dd class="a-m-d"><div class="bd">
<dd id="assetHelpers_pane" class="a-m-d"><div class="bd">
<h1 id="helper_asset_name">Asset</h1>
<ul id="helper_list">
</ul>
<h2>History (i18n)</h2>
<h2 style="background-image: url(^Extras(icon/clock.png););">History (i18n)</h2>
<ul id="history_list">
</ul>
</div></dd>

View file

@ -104,3 +104,19 @@ img.icon {
a:link {
text-decoration: none;
}
#helper_asset_name {
font-size: 14pt;
margin-left: 5px;
padding-left: 20px;
background-repeat: no-repeat;
background-position: 0 50%;
}
#assetHelpers_pane h2 {
font-size: 14pt;
margin-left: 5px;
padding-left: 20px;
background-repeat: no-repeat;
background-position: 0 50%;
}

View file

@ -300,7 +300,7 @@ WebGUI.Admin.prototype.pasteAsset
WebGUI.Admin.prototype.updateAssetHelpers
= function ( assetDef ) {
var typeEl = document.getElementById( 'helper_asset_name' );
typeEl.style.backgroundImage = assetDef.icon;
typeEl.style.backgroundImage = 'url(' + assetDef.icon + ')';
typeEl.innerHTML = assetDef.type;
// Clear old helpers