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
public function value(ProfilePage &$page, $field, $value, &$success)
{
$success = true;
- if (is_null($value) || !is_array($value)) {
+ if (is_null($value)) {
$value = array();
$res = XDB::iterator("SELECT t.display_tel AS tel, t.tel_type AS type, t.pub, t.comment
FROM profile_phones AS t