groups/modules/commons/commons_media/commons_media_autoembed.js
Marton Kiss 8ac59801be Refactor commons build process
Update commons modules to release 7.12, and move the codebase under
modules/commons instead of constant fetching from remote repository.
The commons.make file removed so it is not required to rebuild
groups distribution.

Change-Id: I3be393ba1af34427e2915b18ab1ad718fd4e54db
2014-05-28 15:58:33 +02:00

11 lines
207 B
JavaScript

(function ($) {
Drupal.behaviors.autoEmbed = {
attach: function (context, settings) {
// Automatically click the submit button to embed the file.
$('.button.fake-ok').click();
}
};
})(jQuery);