If you have an AJAX block of your View in the sidebar of the View page rendering, the AJAX content will replace both b/c it uses the generic view-content-view-name that is present on both the page and the block rendering. If you only do the html replace on the .view-content-view-name that is a descendant of .block, it will leave the page rendering alone.
Comments
Comment #1
febbraro commentedNote to self:
Investigate if views_build_view('block', $view) wraps it in a .block as well. It might not. If not then consider putting a custom div with a non-conflicting css id or class that use that to do the AJAX replace.
Comment #2
febbraro commentedThe fix works best if I just create a new div with a specific class. I chose "ajax-view-block-[viewname]"
Comment #3
febbraro commentedComment #4
febbraro commented