src/js/widgets/createAnnotationWidget.js
branchpopcorn-port
changeset 837 353a78021ebc
parent 836 526f91f5253e
child 838 03b03865eb9b
equal deleted inserted replaced
836:526f91f5253e 837:353a78021ebc
   210   
   210   
   211   var jqTextfield = this.selector.find(".Ldt-createAnnotation-Description"); // handle on the textfield. used for the closure
   211   var jqTextfield = this.selector.find(".Ldt-createAnnotation-Description"); // handle on the textfield. used for the closure
   212   
   212   
   213   /* test if the browser supports the placeholder attribute */
   213   /* test if the browser supports the placeholder attribute */
   214   if (!IriSP.null_or_undefined(jqTextfield.get(0).placeholder)) {
   214   if (!IriSP.null_or_undefined(jqTextfield.get(0).placeholder)) {
   215     jqTextfield.attr("placeholder", "Type your annotation here."); 
   215     jqTextfield.attr("placeholder", IriSP.i18n.getMessage('type_here')); 
   216   } else {
   216   } else {
   217     jqTextfield.val("Type your annotation here.");
   217     jqTextfield.val(IriSP.i18n.getMessage('type_here'));
   218     jqTextfield.one("click", IriSP.wrap(this, function() { jqTextfield.val(""); }));    
   218     jqTextfield.one("click", IriSP.wrap(this, function() { jqTextfield.val(""); }));    
   219   }
   219   }
   220   
   220   
   221  
   221  
   222   
   222