Language course html
Jump to navigation
Jump to search
| Line 291: | Line 291: | ||
| − | $(function(){ | + | $ci(function() { |
var teachers = [ | var teachers = [ | ||
| Line 310: | Line 310: | ||
]; | ]; | ||
| − | var | + | var dropdown = $ci("#select_teachers"); |
| − | $.each(teachers, function(index,value) { | + | $ci.each(teachers, function(index,value) { |
| − | + | dropdown.append($ci("<option />").text(value)); | |
}); | }); | ||
| − | $('select[multiple]').multiselect({search: true}); | + | $ci('select[multiple]').multiselect({search: true}); |
| − | $('.ci_form textarea').autosize(); | + | $ci('.ci_form textarea').autosize(); |
if("</html>{{PAGENAME}}<html>" == "FormEdit/Teacher") { | if("</html>{{PAGENAME}}<html>" == "FormEdit/Teacher") { | ||
| − | $('#picture_section').hide(); | + | $ci('#picture_section').hide(); |
} | } | ||
| − | $('form').submit(function() { | + | $ci('form').submit(function() { |
// ***attention !!! | // ***attention !!! | ||
// otherwise pageforms will not retrieve it! | // otherwise pageforms will not retrieve it! | ||
| − | $('input').removeAttr('disabled'); | + | $ci('input').removeAttr('disabled'); |
return true; | return true; | ||
}); | }); | ||
Revision as of 23:00, 7 July 2020