solved Profile Notes Function

PatriaCo
PatriaCo
@the-patria-company
8 years ago
349 posts
Can someone please help me track down this function? (directory and file please)

jrGenCore_profile_notes

Thanks :)


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3

updated by @the-patria-company: 10/03/16 09:30:17AM
michael
@michael
8 years ago
7,692 posts
Its in
/modules/jrGenCore/index.php

Its a form field:
    // Profile Notes
    $_tmp = array(
        'name'     => 'profile_notes',
        'label'    => 'research notes',
        'help'     => 'Enter any research notes you would like to add to this ancestor profile.',
        'type'     => 'textarea',
        'valdiate' => 'printable',
        'required' => false
    );
    jrCore_form_field_create($_tmp);
in the view_jrGenCore_modify_person() function
PatriaCo
PatriaCo
@the-patria-company
8 years ago
349 posts
I have this in my template:

<a onclick="jrGenCore_profile_notes('{$_profile_id}');">

and it currently loads in visible and I need to make in load in display:none

This should be js, correct?


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3
michael
@michael
8 years ago
7,692 posts
All javascript functions for the jrGenCore module will be found at:
/modules/jrGenCore/js/jrGenCore.js

That function is defined as:
/**
 * Load profile notes on click
 * @param pid int Profile ID
 */
function jrGenCore_profile_notes(pid){
    var b = $('#profile_notes_box');
    if (b.is(':visible')) {
        b.slideUp('fast');
    }
    else {
        jrGenCore_load_notes(pid, function()
        {
            b.slideDown('fast');
        });
    }
}

So what its doing is checking if the #profile_notes_box is visible, and if it is, then hiding it.

So since you're probably working with a customized skin, you need to add style="display:none" to your location that has:
<div id="profile_notes_box"..........

Tags