96 else |
96 else |
97 var newVal = contents + " " + polemic; |
97 var newVal = contents + " " + polemic; |
98 } |
98 } |
99 |
99 |
100 _this.selector.find(".Ldt-createAnnotation-Description").val(newVal); |
100 _this.selector.find(".Ldt-createAnnotation-Description").val(newVal); |
101 // we use a custom event because there's no simple way to test for a js |
101 |
102 // change in a textfield. |
|
103 _this.selector.find(".Ldt-createAnnotation-Description").trigger("js_mod"); |
|
104 // also call our update function. |
102 // also call our update function. |
105 _this.handleTextChanges(); |
103 _this.handleTextChanges(); |
106 } |
104 } |
107 }(polemic)); |
105 }(polemic)); |
108 } |
106 } |
109 |
107 |
|
108 // js_mod is a custom event because there's no simple way to test for a js |
|
109 // change in a textfield. |
110 this.selector.find(".Ldt-createAnnotation-Description") |
110 this.selector.find(".Ldt-createAnnotation-Description") |
111 .bind("propertychange keyup input paste", IriSP.wrap(this, this.handleTextChanges)); |
111 .bind("propertychange keyup input paste js_mod", IriSP.wrap(this, this.handleTextChanges)); |
112 |
112 |
113 /* the cinecast version of the player is supposed to pause when the user clicks on the button */ |
113 /* the cinecast version of the player is supposed to pause when the user clicks on the button */ |
114 if (this.cinecast_version) { |
114 if (this.cinecast_version) { |
115 this.selector.find(".Ldt-createAnnotation-Description") |
115 this.selector.find(".Ldt-createAnnotation-Description") |
116 .one("propertychange keyup input paste js_mod", |
116 .one("propertychange keyup input paste js_mod", |