From adfa7be45a0d068e6ebe90ad04e44e0fa7e52799 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Thu, 15 Jul 2010 17:32:22 -0500 Subject: [PATCH] make Asset Helpers panel pretty --- lib/WebGUI/Admin.pm | 4 ++-- www/extras/admin/admin.css | 16 ++++++++++++++++ www/extras/admin/admin.js | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/Admin.pm b/lib/WebGUI/Admin.pm index 6f04b876e..e673f6632 100644 --- a/lib/WebGUI/Admin.pm +++ b/lib/WebGUI/Admin.pm @@ -361,11 +361,11 @@ __DATA__
Asset Helpers (i18n)
-
+

Asset

-

History (i18n)

+

History (i18n)

diff --git a/www/extras/admin/admin.css b/www/extras/admin/admin.css index d4a77ee06..b7aa26e13 100644 --- a/www/extras/admin/admin.css +++ b/www/extras/admin/admin.css @@ -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%; +} diff --git a/www/extras/admin/admin.js b/www/extras/admin/admin.js index 0f60d62b7..2d2495fb3 100644 --- a/www/extras/admin/admin.js +++ b/www/extras/admin/admin.js @@ -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