src/js/widgets/createAnnotationWidget.js
branchpopcorn-port
changeset 799 5293a2c52fc6
parent 779 52be94ec8e1c
child 807 9f6c136ddc03
--- a/src/js/widgets/createAnnotationWidget.js	Thu Feb 09 12:06:35 2012 +0100
+++ b/src/js/widgets/createAnnotationWidget.js	Thu Feb 09 15:02:20 2012 +0100
@@ -98,17 +98,17 @@
           }
           
           _this.selector.find(".Ldt-createAnnotation-Description").val(newVal);
-          // we use a custom event because there's no simple way to test for a js
-          // change in a textfield.
-          _this.selector.find(".Ldt-createAnnotation-Description").trigger("js_mod");
+          
           // also call our update function.
           _this.handleTextChanges();
         }
        }(polemic));
       }    
   
+  // js_mod is a custom event because there's no simple way to test for a js
+  // change in a textfield.                    
   this.selector.find(".Ldt-createAnnotation-Description")
-               .bind("propertychange keyup input paste", IriSP.wrap(this, this.handleTextChanges));
+               .bind("propertychange keyup input paste js_mod", IriSP.wrap(this, this.handleTextChanges));
                
   /* the cinecast version of the player is supposed to pause when the user clicks on the button */
   if (this.cinecast_version) {