Skip to content

Commit

Permalink
Merge ec6074d into 558b550
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfersou committed Jun 13, 2016
2 parents 558b550 + ec6074d commit fcce4e6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/collective/texttospeech/static/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
var MainView = (function() {
function MainView() {
this.$el = $('#viewlet-texttospeech');
if (typeof window.responsiveVoice === "undefined") {
this.$el.html('');
return;
}
this.$button = $('#texttospeech-button', this.$el);
this.voice = this.$el.attr('data-voice');
this.label_stopped = this.$el.attr('data-label-stopped');
Expand Down Expand Up @@ -49,6 +53,9 @@ var MainView = (function() {

var ControlPanelView = (function() {
function ControlPanelView() {
if (typeof window.responsiveVoice === "undefined") {
return;
}
this.template = "<select id=\"form-widgets-voice\" name=\"form.widgets.voice\" class=\"text-widget required textline-field\">\n</select>";
this.actual_voice = $('#form-widgets-voice').val();
this.render();
Expand Down

0 comments on commit fcce4e6

Please sign in to comment.