solved jrCore_item_action_buttons

nate
@nate
9 years ago
917 posts
I'm doing an ajax call to load a list. The list shows fine. But the jrCore_item_list_buttons function is failing.

The function jrCore_item_action_buttons has a test in in it

if (!jrProfile_is_profile_view()) {
        return '';

If I comment this out things work fine. Is there a way I can pass the above test when loading my templates via ajax? I am on the profile when making the ajax call.


updated by @nate: 05/10/16 02:52:23AM
michael
@michael
9 years ago
7,791 posts
that whole function is:
function jrProfile_is_profile_view(){
    return jrCore_get_flag('jrprofile_view_is_active');
}
So you could set the flag on your ajax processing page perhaps:
jrCore_set_flag('jrprofile_view_is_active', true);
nate
@nate
9 years ago
917 posts
That worked. Thanks a lot.

Tags