equal
deleted
inserted
replaced
116 var contents = textfield.val(); |
116 var contents = textfield.val(); |
117 |
117 |
118 if (contents === "") { |
118 if (contents === "") { |
119 textfield.after(IriSP.templToHTML(IriSP.createAnnotation_errorMessage_template)); |
119 textfield.after(IriSP.templToHTML(IriSP.createAnnotation_errorMessage_template)); |
120 textfield.css("background-color", "#d93c71"); |
120 textfield.css("background-color", "#d93c71"); |
|
121 |
|
122 // use namespaced events to be able to unbind them quickly and without unbinding |
|
123 // the other event handlers. |
121 textfield.bind("propertychange.tmp keyup.tmp input.tmp paste.tmp", IriSP.wrap(this, function() { |
124 textfield.bind("propertychange.tmp keyup.tmp input.tmp paste.tmp", IriSP.wrap(this, function() { |
122 var contents = textfield.val(); |
125 var contents = textfield.val(); |
123 console.log(contents); |
126 console.log(contents); |
124 if (contents !== "") { |
127 if (contents !== "") { |
125 this.selector.find(".Ldt-createAnnotation-errorMessage").hide(); |
128 this.selector.find(".Ldt-createAnnotation-errorMessage").hide(); |