Index: feedback.css =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/feedback/feedback.css,v retrieving revision 1.4 diff -u -p -r1.4 feedback.css --- feedback.css 2 Aug 2009 22:17:30 -0000 1.4 +++ feedback.css 19 Nov 2009 11:13:25 -0000 @@ -17,14 +17,16 @@ } -div#block-feedback-form { +#block-feedback-form { + display: none; position: fixed; bottom: 60px; right: 20px; overflow: hidden; z-index: 10; } -* html div#block-feedback-form { /* IE6 */ +/* IE6 seems to be unable to handle fixed */ +* html #block-feedback-form { position: absolute; } #block-feedback-form .feedback-link { @@ -36,15 +38,12 @@ div#block-feedback-form { display: inline; font-size: 12px; } -#block-feedback-form .content { - display: none; - width: 220px; -} #block-feedback-form form { border: 1px solid #ccc; padding: 6px; background-color: #fff; opacity: 0.9; + width: 200px; } #block-feedback-form .feedback-help { margin: 0 0 0.5em; @@ -55,14 +54,23 @@ div#block-feedback-form { margin-top: 0.2em; font-size: 10px; } +#block-feedback-form .form-textarea { + width: 97%; +} #block-feedback-form .feedback-message { height: 10ex; } #block-feedback-form .resizable-textarea .grippie { width: 204px; } +/* IE6 fails to render textarea with full width */ +* html #block-feedback-form .resizable-textarea textarea { + width: 200px; +} #block-feedback-form #feedback-throbber { height: 20px; +} +#block-feedback-form .throbbing { background: url(images/throbber.gif) no-repeat left center; } #block-feedback-form #feedback-submit { Index: feedback.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/feedback/feedback.js,v retrieving revision 1.3 diff -u -p -r1.3 feedback.js --- feedback.js 19 Oct 2008 19:10:23 -0000 1.3 +++ feedback.js 19 Nov 2009 11:13:57 -0000 @@ -3,7 +3,7 @@ /** * Attach collapse behavior to the feedback form block (once). */ -Drupal.feedbackSetup = function() { +Drupal.behaviors.feedbackForm = function() { $block = $('#block-feedback-form'); $block.find('span.feedback-link') .prepend('[ + ] ') @@ -15,14 +15,17 @@ Drupal.feedbackSetup = function() { Drupal.feedbackFormToggle($block, true); } ); - $block.find('form') + $block.find('form').hide() .find(':input[name="ajax"]').val(1).end() .submit(function() { + // Toggle throbber/button. + $('#feedback-throbber', this).addClass('throbbing'); $('#feedback-submit', this).fadeOut('fast', function() { - Drupal.feedbackFormSubmit($(this).parents('form').get(0)); + Drupal.feedbackFormSubmit($(this).parents('form')); }); return false; }); + $block.show(); // Attach auto-submit to admin view form. $('fieldset.feedback-messages :input[type="checkbox"]').click(function() { $(this).parents('form').submit(); @@ -33,7 +36,7 @@ Drupal.feedbackSetup = function() { * Collapse or uncollapse the feedback form block. */ Drupal.feedbackFormToggle = function($block, enable) { - $block.find('.content').slideToggle('medium'); + $block.find('form').slideToggle('medium'); if (enable) { $('#feedback-form-toggle', $block).html('[ + ]'); } @@ -45,15 +48,15 @@ Drupal.feedbackFormToggle = function($bl /** * Collapse or uncollapse the feedback form block. */ -Drupal.feedbackFormSubmit = function(form) { - var $form = $(form); - $.post(form.action, $form.serialize(), function(data) { +Drupal.feedbackFormSubmit = function($form) { + $.post($form.get(0).action, $form.serialize(), function(data) { // Collapse the form. $('#block-feedback-form').find('.feedback-link').click(); // Display status message. $form.parent().parent().append('