Skip to content

Commit

Permalink
Change to Xenith to resolve FileLocation style urls that are containe…
Browse files Browse the repository at this point in the history
…d in manually added <img> tags
  • Loading branch information
JohnSmith-LT committed May 29, 2014
1 parent 51ab04c commit 1dbb813
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,18 @@ function x_setUpPage() {
function x_pageLoaded() {
x_pageInfo[x_currentPage].built = $("#x_page" + x_currentPage);

// Resolve all text box added <img> src tags to proper urls
$("#x_page" + x_currentPage + " img").each(function() {
var $this = $(this),
src = $this.attr("src");

if (src.substring(0, 16) == "FileLocation + '") {
src = eval(src);
}

$this.attr("src", src);
});

$("#x_page" + x_currentPage)
.hide()
.css("visibility", "visible")
Expand Down

0 comments on commit 1dbb813

Please sign in to comment.