|
@@ -2372,6 +2372,33 @@
|
|
<span>Handouts</span>
|
|
<span>Handouts</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ @if($pro->pro_type === 'ADMIN')
|
|
|
|
+ <div class="nbt-container border-right border-info d-inline-flex align-self-stretch">
|
|
|
|
+ <a native="" target="_top"
|
|
|
|
+ class="c-pointer d-inline-flex align-items-center handouts-trigger px-2 py-1 text-dark"
|
|
|
|
+ data-non-segment-target="HCP Bills" href="#">HCP Bills</a>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="nbt-container border-right border-info d-inline-flex align-self-stretch">
|
|
|
|
+ <a native="" target="_top"
|
|
|
|
+ class="c-pointer d-inline-flex align-items-center handouts-trigger px-2 py-1 text-dark"
|
|
|
|
+ data-non-segment-target="NA Bills" href="#">NA Bills</a>
|
|
|
|
+ </div>
|
|
|
|
+ @else
|
|
|
|
+ @if($note->hcpPro && $pro->id === $note->hcpPro->id)
|
|
|
|
+ <div class="nbt-container border-right border-info d-inline-flex align-self-stretch">
|
|
|
|
+ <a native="" target="_top"
|
|
|
|
+ class="c-pointer d-inline-flex align-items-center handouts-trigger px-2 py-1 text-dark"
|
|
|
|
+ data-non-segment-target="HCP Bills" href="#">Bills</a>
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
|
|
+ @if($note->allyPro && $pro->id === $note->allyPro->id)
|
|
|
|
+ <div class="nbt-container border-right border-info d-inline-flex align-self-stretch">
|
|
|
|
+ <a native="" target="_top"
|
|
|
|
+ class="c-pointer d-inline-flex align-items-center handouts-trigger px-2 py-1 text-dark"
|
|
|
|
+ data-non-segment-target="NA Bills" href="#">Bills</a>
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
|
|
+ @endif
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
|
|
|
|
@@ -2487,6 +2514,26 @@
|
|
$('.visit-segment[data-segment-template-name="disclaimers"]').find('.refresh-segment').trigger('click');
|
|
$('.visit-segment[data-segment-template-name="disclaimers"]').find('.refresh-segment').trigger('click');
|
|
fastReload();
|
|
fastReload();
|
|
});
|
|
});
|
|
|
|
+ $(document)
|
|
|
|
+ .off('click.scroll-to-non-segment', '[data-non-segment-target]')
|
|
|
|
+ .on('click.scroll-to-non-segment', '[data-non-segment-target]', function() {
|
|
|
|
+ closeStagPopup(true);
|
|
|
|
+ let section = $('div[data-non-segment-section="' + $(this).attr('data-non-segment-target') + '"]').first();
|
|
|
|
+ if(section.length) {
|
|
|
|
+ section[0].scrollIntoView({
|
|
|
|
+ behavior: "smooth",
|
|
|
|
+ block: "center",
|
|
|
|
+ inline: "center"
|
|
|
|
+ });
|
|
|
|
+ section.addClass('spot-highlight');
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ section.removeClass('spot-highlight');
|
|
|
|
+ }, 1500);
|
|
|
|
+ $('.note-tree-node.active').removeClass('active');
|
|
|
|
+ $(this).closest('.note-tree-node').addClass('active');
|
|
|
|
+ }
|
|
|
|
+ return false;
|
|
|
|
+ });
|
|
}
|
|
}
|
|
addMCInitializer('soap-visit', init, '#note-single-header');
|
|
addMCInitializer('soap-visit', init, '#note-single-header');
|
|
})();
|
|
})();
|