Skip to content

Commit

Permalink
Merge pull request #500 from dontcallmedom/fixphantom
Browse files Browse the repository at this point in the history
Fix save-ui for respec2html
  • Loading branch information
Marcos Caceres committed Sep 14, 2015
2 parents 78b2084 + c96a542 commit 0e24d1e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions js/ui/save-html.js
Expand Up @@ -66,16 +66,16 @@ define(
addButton({
title: "Save as HTML",
url: this.htmlToDataURL(this.toString()),
popupContent: this.toHTMLSource.bind(this),
popupContent: function () { self.toHTMLSource(); },
fileName: "index.html",
});

// XHTML5
addButton({
fileName: "index.xhtml",
popupContent: function () {
this.toXHTMLSource(5);
}.bind(this),
self.toXHTMLSource(5);
},
title: "Save as XHTML5",
url: this.htmlToDataURL(this.toXML(5)),
});
Expand All @@ -84,8 +84,8 @@ define(
addButton({
fileName: "index.xhtml",
popupContent: function () {
this.toXHTMLSource(1);
}.bind(this),
self.toXHTMLSource(1);
},
title: "Save as XHTML 1.0",
url: this.htmlToDataURL(this.toXML(1)),
});
Expand All @@ -94,8 +94,8 @@ define(
addButton({
fileName: "spec.epub",
popupContent: function () {
window.open(this.makeEPubHref(), "_blank");
}.bind(this),
window.open(self.makeEPubHref(), "_blank");
},
title: "Save as EPUB 3",
type: "application/epub+zip",
url: this.makeEPubHref(),
Expand Down

0 comments on commit 0e24d1e

Please sign in to comment.