Added abutton_img class + supporting properties in miniPromptMessage to allow icons on abuttons
authorDan
Tue, 29 Jul 2008 09:53:42 -0600
changeset 673 99c617146a34
parent 672 08a7875258b4
child 674 f514dc675f32
Added abutton_img class + supporting properties in miniPromptMessage to allow icons on abuttons
includes/clientside/css/enano-shared.css
includes/clientside/static/editor.js
includes/clientside/static/messagebox.js
--- 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 {
--- 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;
--- 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