minor changes to prior commit
[openemr.git] / interface / patient_file / erx_patient_portal_js.php
blobcf9943ec7934c4d4a3a38c44f6f16db6f420e646
1 <?php
2 /**
3 * erx account status and patient portal username generator popup modals
5 * @package OpenEMR
6 * @link http://www.open-emr.org
7 * @author Ranganath Pathak <pathak@scrs1.org>
8 * @copyright Copyright (c) 2018 Ranganath Pathak <pathak@scrs1.org>
9 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
12 //erx account status and patient portal username generator popup modals
13 $(document).ready(function(){
14 $(".iframe1").on('click', function(e) {
15 e.preventDefault();e.stopPropagation();
16 dlgopen('', '', 350, 300, '', '', {
17 buttons: [
18 {text: '<?php echo xla('Close'); ?>', close: true, style: 'default btn-sm'}
20 allowResize: true,
21 allowDrag: true,
22 dialogId: '',
23 type: 'iframe',
24 url: $(this).attr('href')
25 });
26 });
27 // for patient portal
28 $(".small_modal").on('click', function(e) {
29 e.preventDefault();e.stopPropagation();
30 dlgopen('', '', 380, 200, '', '', {
31 buttons: [
32 {text: '<?php echo xla('Close'); ?>', close: true, style: 'default btn-sm'}
34 allowResize: true,
35 allowDrag: true,
36 dialogId: '',
37 type: 'iframe',
38 url: $(this).attr('href')
39 });
40 });
41 });