diff -r 7623f9af9272 -r 2409cb4cebaf src/widgets/CreateAnnotation.js --- a/src/widgets/CreateAnnotation.js Fri Oct 02 11:27:17 2015 +0200 +++ b/src/widgets/CreateAnnotation.js Mon Dec 28 15:50:04 2015 +0100 @@ -64,6 +64,7 @@ pause_when_displaying: false, custom_send_button: false, custom_cancel_button: false, + custom_description_placeholder: false, preview_mode: false, }; @@ -137,12 +138,12 @@ + 'Out' + 'Play' + '{{/show_controls}}' - + '' + + '' + '{{#show_creator_field}}
{{/show_creator_field}}' + '
' - + '{{#preview_mode}}{{/preview_mode}}' - + '{{^preview_mode}}{{/preview_mode}}' - + '' + + '{{#preview_mode}}{{/preview_mode}}' + + '{{^preview_mode}}{{/preview_mode}}' + + '' + '
00:00
' + '
' + '{{#show_mic_record}}
Add voice annotation
' @@ -235,7 +236,7 @@ show_arrow: this.show_arrow, annotation_type: this.slice_annotation_type, onBoundsChanged: function(_from, _to) { - this.setBeginEnd(_from, _to); + _this.setBeginEnd(_from, _to); } }, "slice" @@ -379,14 +380,14 @@ if (this.visible) { this.hide(); } else { - var t = _this.media.getCurrentTime() || 0; - _this.setBeginEnd(t, t); - if (_this.slice_widget) { - _this.slice_widget.setBounds(_this.begin, _this.end); + var t = this.media.getCurrentTime() || 0; + this.setBeginEnd(t, t); + if (this.slice_widget) { + this.slice_widget.setBounds(this.begin, this.end); } this.show(); // Set focus on textarea - _this.$.find(".Ldt-CreateAnnotation-Description").focus(); + this.$.find(".Ldt-CreateAnnotation-Description").focus(); } } };