|
|
|
|
@ -86,12 +86,11 @@ $(document).ready(function(){ |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$("#languageinput").chosen(); |
|
|
|
|
// Show only the not selectable optgroup
|
|
|
|
|
// Choosen only shows optgroup-labels if there are options in the optgroup
|
|
|
|
|
$(".languagedivider").remove(); |
|
|
|
|
|
|
|
|
|
$("#languageinput").change( function(){ |
|
|
|
|
// the divider is no language
|
|
|
|
|
if ($("#languageinput option").hasClass('divider')) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
// Serialize the data
|
|
|
|
|
var post = $( "#languageinput" ).serialize(); |
|
|
|
|
// Ajax foo
|
|
|
|
|
|