|
|
@ -477,9 +477,11 @@ define([
|
|
|
|
var exportMediaTags = function (inner, cb) {
|
|
|
|
var exportMediaTags = function (inner, cb) {
|
|
|
|
var $clone = $(inner).clone();
|
|
|
|
var $clone = $(inner).clone();
|
|
|
|
nThen(function (waitFor) {
|
|
|
|
nThen(function (waitFor) {
|
|
|
|
$clone.find('media-tag > img').each(function (i, el) {
|
|
|
|
$(inner).find('media-tag').each(function (i, el) {
|
|
|
|
Util.blobURLToImage($(el).attr('src'), waitFor(function (imgSrc) {
|
|
|
|
if (!$(el).data('blob')) { return; }
|
|
|
|
$(el).attr('src', imgSrc);
|
|
|
|
Util.blobToImage($(el).data('blob'), waitFor(function (imgSrc) {
|
|
|
|
|
|
|
|
$clone.find('media-tag[src="' + $(el).attr('src') + '"] img')
|
|
|
|
|
|
|
|
.attr('src', imgSrc);
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}).nThen(function () {
|
|
|
|
}).nThen(function () {
|
|
|
|