Skip to content

Commit

Permalink
Render image blocks for Chart extension in html and docbook
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmanusta committed Apr 3, 2015
1 parent 78b6111 commit 66b4c05
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/main/resources/public/js/asciidoctor-chart-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
type = "" + (attrs['$[]']("type"));
filename = "" + (attrs['$[]']("file"));
cache = "" + (attrs['$[]']("cache"));
opt = "" + (attrs['$[]']("opt")) ;
opt = "" + (attrs['$[]']("opt"));

if (cache != "enabled") {
app.chartBuildFromCsv(csvFile, filename, chartType, opt);
Expand Down Expand Up @@ -151,12 +151,9 @@
_p = (TMP_1 = function () {
var self = TMP_1._s || this, $a;

if ((($a = self.$document()['$basebackend?']("html")) !== nil && (!$a._isBoolean || $a == true))) {
self.$block_macro($scope.ChartBlockMacro);
return self.$block($scope.ChartBlockProcessor);
} else {
return nil
}
self.$block_macro($scope.ChartBlockMacro);
return self.$block($scope.ChartBlockProcessor);

}, TMP_1
.
_s = self, TMP_1
Expand Down

0 comments on commit 66b4c05

Please sign in to comment.