$(document).ready(function(){
  if (window.rcmail) {
    rcmail.addEventListener('init', function(evt) {    
      rcmail.register_command('plugin.hmail_signature-save', function() { 
      document.forms.signatureform.submit();    
      }, true);
    })
  }
});