Commit 9124bf92d7709ff797e3fc166f97126b5c5963b5

Authored by Gustavo
1 parent 30c7c061

Fix'd bug with search field without placeholder

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
subjects/templates/subjects/_form.html 100644 → 100755
@@ -94,8 +94,8 @@ @@ -94,8 +94,8 @@
94 94
95 <script type="text/javascript"> 95 <script type="text/javascript">
96 $('#id_professor').multiSelect({ 96 $('#id_professor').multiSelect({
97 - selectableHeader: "<input type='text' class='search-input category-search-users' autocomplete='off' placeholder=' '>",  
98 - selectionHeader: "<input type='text' class='search-input category-search-users' autocomplete='off' placeholder=''>", 97 + selectableHeader: "<input type='text' class='search-input category-search-users' autocomplete='off' placeholder='{% trans 'Search for professors' %} '>",
  98 + selectionHeader: "<input type='text' class='search-input category-search-users' autocomplete='off' placeholder='{% trans 'Search for professors' %}'>",
99 afterInit: function(ms){ 99 afterInit: function(ms){
100 var that = this, 100 var that = this,
101 $selectableSearch = that.$selectableUl.prev(), 101 $selectableSearch = that.$selectableUl.prev(),
@@ -140,8 +140,8 @@ @@ -140,8 +140,8 @@
140 });// Used to create multi-select css style 140 });// Used to create multi-select css style
141 141
142 $('#id_students').multiSelect({ 142 $('#id_students').multiSelect({
143 - selectableHeader: "<input type='text' class='search-input category-search-users' autocomplete='off' placeholder=' '>",  
144 - selectionHeader: "<input type='text' class='search-input category-search-users' autocomplete='off' placeholder=''>", 143 + selectableHeader: "<input type='text' class='search-input category-search-users' autocomplete='off' placeholder=' {% trans 'Search for students' %} '>",
  144 + selectionHeader: "<input type='text' class='search-input category-search-users' autocomplete='off' placeholder=' {% trans 'Search for students' %} '>",
145 afterInit: function(ms){ 145 afterInit: function(ms){
146 var that = this, 146 var that = this,
147 $selectableSearch = that.$selectableUl.prev(), 147 $selectableSearch = that.$selectableUl.prev(),