Skip to content
This repository was archived by the owner on Dec 13, 2017. It is now read-only.

Commit f6fa879

Browse files
author
Sérgio Estêvão
authored
Merge pull request #853 from wordpress-mobile/issue/852_fix_display_of_error_state_on_media
Use the correct identifier for media span container.
2 parents bbdd5cd + 4fbbe39 commit f6fa879

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Assets/ZSSRichTextEditor.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ ZSSEditor.insertLocalImage = function(imageNodeIdentifier, localImageUrl) {
813813
var progressIdentifier = this.getImageProgressIdentifier(imageNodeIdentifier);
814814

815815
var span = document.createElement("span");
816-
span.id = imageNodeIdentifier;
816+
span.id = this.getImageContainerIdentifier(imageNodeIdentifier);
817817
span.className = "img_container";
818818

819819
var progress = document.createElement("progress");
@@ -1023,7 +1023,6 @@ ZSSEditor.markImageUploadFailed = function(imageNodeIdentifier, message) {
10231023
}
10241024

10251025
imageNode.addClass('failed');
1026-
10271026
var imageContainerNode = this.getImageContainerNodeWithIdentifier(imageNodeIdentifier);
10281027
if(imageContainerNode.length != 0){
10291028
imageContainerNode.attr("data-failed", message);

0 commit comments

Comments
 (0)