overlay submit feedback This might be a very simple question, but I can't figure out the answer.

I love the overlay module in drupal 7, but I am annoyed by the lack of visual feedback when a form is submitted in an overlay. eg. admin/structure/block, hitting submit doesn't give any indication that something is happening in the background.

I would love to know what I have to do to attach some behavior to the submit button of a form in an overlay that provides visual feedback that the form has been submitted (like greying out the overlay or something).
I just added a block with following code to the content region of my administration theme

&lt;style type="text/css"&gt;
#overlay-inactive {
 z-index:100;
 opacity:0.5;
 background-color:grey;
 position: absolute;
 top: 0px;
 left: 0px;
 width:100%;
 height: 100%;
}
&lt;/style&gt;
&lt;script&gt;
jQuery(document).ready(function(){
 jQuery('input[type=submit]').click(function(){
   jQuery('#overlay').append('&lt;div id="overlay-inactive"&gt;&amp;nbsp;&lt;/div&gt;');
  return true;
 });
});
&lt;/script&gt;