Skip to content
Extraits de code Groupes Projets
Valider 2ba1198b rédigé par MrZYX's avatar MrZYX
Parcourir les fichiers

fixed embedder (again)

parent 65263f19
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -56,10 +56,9 @@
this.registerServices();
var $post = $("#main_stream").children(".stream_element:first"),
$contentParagraph = $post.children(".content").children("p"),
$infoDiv = $contentParagraph.prev(".from").siblings(".info");
$contentParagraph = $post.children(".sm_body").children('.content').children("p");
this.canEmbed = $infoDiv.length;
this.canEmbed = $contentParagraph.length;
};
Embedder.prototype.registerServices = function() {
......
......@@ -50,13 +50,10 @@ describe("Diaspora", function() {
it("has to have a certain DOM structure", function() {
spec.loadFixture("aspects_index_with_posts");
var $post = $("#main_stream").children(".stream_element:first");
var $contentParagraph = $post.find(".sm_body .content").children("p");
console.log($contentParagraph);
var $infoDiv = $contentParagraph.prev(".from").siblings(".info");
console.log($infoDiv);
expect($infoDiv.length).toEqual(1);
var $post = $("#main_stream").children(".stream_element:first"),
$contentParagraph = $post.children(".sm_body").children('.content').children("p");
expect($contentParagraph.length).toEqual(1);
});
});
});
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter