/***************************************************************************
- * Copyright (C) 2003-2009 Polytechnique.org *
+ * Copyright (C) 2003-2010 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
});
}
+function toggleParticle(id)
+{
+ if ($('#search_name_' + id).find("[name*='[particle]']").val() == '') {
+ $('#search_name_' + id).find("[name*='[particle]']").val(1);
+ } else {
+ $('#search_name_' + id).find("[name*='[particle]']").val('');
+ }
+}
+
// Nationalities {{{1
function delNationality(i)
function addPhoneComment(id)
{
- $(id + '_comment').show();
- $(id + '_addComment').hide();
+ $('#' + id + '_comment').show();
+ $('#' + id + '_addComment').hide();
}
function removePhoneComment(id, pref)
{
- $(id + '_comment').hide();
- $(id + '_comment').find("[name='" + pref + "[comment]']").val('');
- $(id + '_addComment').show();
+ $('#' + id + '_comment').hide();
+ $('#' + id + '_comment').find("[name='" + pref + "[comment]']").val('');
+ $('#' + id + '_addComment').show();
}
// {{{1 Groups