Jelajahi Sumber

Merge branch 'master' of https://github.com/unaio/una

AntonLV 8 tahun lalu
induk
melakukan
32183497bc
1 mengubah file dengan 5 tambahan dan 2 penghapusan
  1. 5 2
      template/form_field_custom_suggestions.html

+ 5 - 2
template/form_field_custom_suggestions.html

@@ -1,9 +1,12 @@
 <div id="__id__" class="bx-form-input-autotoken bx-def-font-inputs bx-form-input-text">
     __vals__
-    <input type="text" value="" placeholder="__placeholder__" class="bx-def-font-inputs bx-form-input-text" />
+    <input type="text" value="" class="bx-def-font-inputs bx-form-input-text" autocomplete="off" autocapitalize="off" autocorrect="off" />
 </div>
 <script>
 	$(function(){
+        $('#__id__ input').on('focus', function () {
+            $(this).attr("placeholder", "__placeholder__");
+        });
 		bx_autocomplete_fields('__id__','__url_get_recipients__','__name__',__b_img__,__only_once__,__on_select__);
 	});
-</script>
+</script>