# HG changeset patch # User Dan # Date 1217346822 21600 # Node ID 99c617146a34279c7caabec36e94aa5eb4626a3b # Parent 08a7875258b432936c49917e17392dd717b52229 Added abutton_img class + supporting properties in miniPromptMessage to allow icons on abuttons diff -r 08a7875258b4 -r 99c617146a34 includes/clientside/css/enano-shared.css --- a/includes/clientside/css/enano-shared.css Mon Jul 28 13:13:09 2008 -0600 +++ b/includes/clientside/css/enano-shared.css Tue Jul 29 09:53:42 2008 -0600 @@ -792,6 +792,13 @@ .abutton_red { color: #880000 !important; } .abutton_red:hover { background-color: #880000 !important; } +.abutton_img { + background-image: url('../../../images/mini-error.png'); + background-position: 4px center; + background-repeat: no-repeat; + padding-left: 24px; +} + /* User rank administration */ div.rankadmin-left { diff -r 08a7875258b4 -r 99c617146a34 includes/clientside/static/editor.js --- a/includes/clientside/static/editor.js Mon Jul 28 13:13:09 2008 -0600 +++ b/includes/clientside/static/editor.js Tue Jul 29 09:53:42 2008 -0600 @@ -627,6 +627,9 @@ { if ( response.is_draft ) { + // for some reason this code is throwing "uncaught exception" errors under gecko + // firebug ain't tracing it, it'll be fixed soon enough though + // note that the errors still seem to show after adding the try{}catch{} blocks try { document.getElementById('ajaxEditArea').used_draft = true; diff -r 08a7875258b4 -r 99c617146a34 includes/clientside/static/messagebox.js --- a/includes/clientside/static/messagebox.js Mon Jul 28 13:13:09 2008 -0600 +++ b/includes/clientside/static/messagebox.js Tue Jul 29 09:53:42 2008 -0600 @@ -531,6 +531,11 @@ button.input.style[j] = button.style[j]; } } + if ( button.image ) + { + button.input.className += ' abutton_img'; + button.input.style.backgroundImage = 'url(' + button.image + ')'; + } button.input.onclick = function(e) { try