sourceml devient un plugin mtweb
[mw_sourceml] / app / out / default / js / actions / users_groupes.js
1 $(document).ready(
2   function(){
3     init_contact_form_ckeckbox();
4   }
5 );
6
7 function select_groupe(id_groupe){
8   var content =
9     "<label for=\"album\">album</label>"
10   + "<select name=\"album\" id=\"album\">"
11   + "<option value=\"0\" selected=\"selected\">hors album</option>";
12   for(var id_album in albums["" + id_groupe])
13   { content +=
14       "<option value=\"" + id_album + "\">" + albums["" + id_groupe]["" + id_album] + "</option>";
15   }
16   content +=
17     "</select>";
18   $("#album_select").html(content);
19 }
20
21 function init_contact_form_ckeckbox(){
22   $("#contact_form").click(
23     function(){
24       if($(this).get(0).checked) $("#email_li").slideDown(200);
25       else $("#email_li").slideUp(200);
26     }
27   );
28 }