Jelajahi Sumber

Fix placeholder on SelectAjax

Angel Fernando Quiroz Campos 9 tahun lalu
induk
melakukan
ed32d4a747
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 2
      main/inc/lib/formvalidator/Element/SelectAjax.php

+ 1 - 2
main/inc/lib/formvalidator/Element/SelectAjax.php

@@ -67,11 +67,10 @@ class SelectAjax extends HTML_QuickForm_select
                 $(function(){
                     $('#{$this->getAttribute('name')}').select2({
                         $languageCondition
-                        placeholder_: '$plHolder',
+                        placeholder: '$plHolder',
                         allowClear: true,
                         width: '$width',
                         minimumInputLength: '$minimumInputLength',
-                        // instead of writing the function to execute the request we use Select2s convenient helper
                         ajax: {
                             url: '{$this->getAttribute('url')}',
                             dataType: 'json',