Skip to content

Commit

Permalink
Merge pull request #1151 from ioam/fix_widget_template
Browse files Browse the repository at this point in the history
Fixed unicode widget templating bug
  • Loading branch information
jlstevens authored Feb 27, 2017
2 parents 624c647 + b55dbf5 commit a57df17
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion holoviews/plotting/widgets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _get_data(self):
name = type(self).__name__
cached = str(self.embed).lower()
load_json = str(self.export_json).lower()
mode = repr(self.renderer.mode)
mode = str(self.renderer.mode)
json_path = (self.json_save_path if self.json_load_path is None
else self.json_load_path)
if json_path and json_path[-1] != '/':
Expand Down
2 changes: 1 addition & 1 deletion holoviews/plotting/widgets/jsscrubber.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
function create_widget() {
setTimeout(function() {
anim{{ id }} = new {{ widget_name }}(frame_data, {{ Nframes }}, "{{ id }}", {{ delay }}, {{ load_json }}, {{ mode }}, {{ cached }}, "{{ json_path }}", {{ dynamic }});
anim{{ id }} = new {{ widget_name }}(frame_data, {{ Nframes }}, "{{ id }}", {{ delay }}, {{ load_json }}, "{{ mode }}", {{ cached }}, "{{ json_path }}", {{ dynamic }});
}, 0);
}
Expand Down
2 changes: 1 addition & 1 deletion holoviews/plotting/widgets/jsslider.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
function create_widget() {
setTimeout(function() {
anim{{ id }} = new {{ widget_name }}(frame_data, "{{ id }}", widget_ids,
keyMap, dim_vals, notFound, {{ load_json }}, {{ mode }},
keyMap, dim_vals, notFound, {{ load_json }}, "{{ mode }}",
{{ cached }}, "{{ json_path}}", {{ dynamic }});
}, 0);
}
Expand Down

0 comments on commit a57df17

Please sign in to comment.