1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-23 01:32:18 -05:00
kaiwa/clientapp/helpers/embedIt.js
Sebastien Hut 340dc6552c jquery oembed plugin
-Fix Kickstarter
-Fix Dailymotion
-Fix events order
-Fix Ebay regex
2015-02-09 16:30:20 +01:00

15 lines
301 B
JavaScript

/*global $, app*/
module.exports = function ($html, cb) {
cb = cb || function () {};
$($html).find("a.source").oembed(null, {
fallback : true,
includeHandle: false,
maxWidth: 490,
afterEmbed: function() {
$($html).find(".embeds").show();
}
});
};