? media-library-double-click.1024632.1.patch Index: javascript/plugins/media.library.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/media/javascript/plugins/media.library.js,v retrieving revision 1.9 diff -u -p -r1.9 media.library.js --- javascript/plugins/media.library.js 13 Aug 2010 15:28:17 -0000 1.9 +++ javascript/plugins/media.library.js 12 Jan 2011 19:00:30 -0000 @@ -114,7 +114,7 @@ Drupal.media.browser.library.prototype.g }; Drupal.media.browser.library.prototype.render = function (renderElement) { - + if (this.mediaFiles.length < 1) { $('
').appendTo(renderElement) .html(this.emptyMessage); @@ -138,7 +138,8 @@ Drupal.media.browser.library.prototype.r var listItem = $('
  • ').appendTo(mediaList) .attr('id', 'media-item-' + mediaFile.fid) .html(mediaFile.preview) - .bind('click', data, this.clickFunction); + .bind('click', data, this.clickFunction) + .bind('dblclick', data, this.doubleclickSubmit); } }; @@ -182,4 +183,9 @@ Drupal.media.browser.library.prototype.m return false; } +Drupal.media.browser.library.prototype.doubleclickSubmit = function (event) { + Drupal.media.browser.submit(); + return false; +} + }(jQuery));