Produced by Araxis Merge on 5/30/2019 1:49:18 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | var_web_release_4_18.zip\var_web_release_4_8_ebb0ab2774d.zip\veteran-appointment-requests\app\modules\appointments\booked\telehealth | veteran-video-connect-popup-view.js | Fri May 10 18:55:49 2019 UTC |
| 2 | var_web_release_4_18.zip\var_web_release_4_8_ebb0ab2774d.zip\veteran-appointment-requests\app\modules\appointments\booked\telehealth | veteran-video-connect-popup-view.js | Thu May 30 00:11:11 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 208 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | define([ | |
| 2 | 'Globa l', | |
| 3 | 'backb one', | |
| 4 | 'under score', | |
| 5 | 'modul es/form/fo rm-view-mi xin', | |
| 6 | 'modul es/page/po pup/popup- layout-vie w', | |
| 7 | 'text! modules/ap pointments /booked/te lehealth/v eteran-vid eo-connect -popup.htm l', | |
| 8 | 'modul es/appoint ments/book ed/telehea lth/vetera n-video-co nnect-name -section-v iew', | |
| 9 | ], | |
| 10 | function( | |
| 11 | Global , | |
| 12 | Backbo ne, | |
| 13 | _, | |
| 14 | Mixin, | |
| 15 | PopupV iew, | |
| 16 | templa te, | |
| 17 | Vetera nVideoConn ectNameSec tionView) { | |
| 18 | 'use s trict'; | |
| 19 | ||
| 20 | /** | |
| 21 | * @cl ass Vetera nVideoConn ectPopupVi ew | |
| 22 | * @ty pedef {Bac kbone.View <Backbone. Model>} | |
| 23 | */ | |
| 24 | return PopupView .extend(Mi xin.form({ | |
| 25 | _i dPrefix: ' modal-', | |
| 26 | id : 'vvc-nam e-form', | |
| 27 | te mplate: _. template(t emplate), | |
| 28 | ev ents: { | |
| 29 | 'popupbe forepositi on': 'styl eMaxHeight ', | |
| 30 | 'popupaf teropen': 'focusOnHe ader', | |
| 31 | 'popupaf terclose': 'destroy' , | |
| 32 | 'click # vvc-contin ue-btn': ' continueTo VVC', | |
| 33 | 'mousedo wn #vvc-co ntinue-btn ': 'preven tDefault', /* to pre vent blur from inter fering wit h saving * / | |
| 34 | 'submit #vvc-name- form': 'co ntinueToVV C', | |
| 35 | 'click # cancel-ret urn-btn': 'closePopu p', | |
| 36 | 'change form': 're setFormVal idation', | |
| 37 | }, | |
| 38 | re gions: { | |
| 39 | vvcNameR egion: '.v vc-name-se ction', | |
| 40 | }, | |
| 41 | in itialize: function(o ptions) { | |
| 42 | this.mod el = optio ns.model; | |
| 43 | this._in itializeEl AfterClose (options); | |
| 44 | }, | |
| 45 | on Render: fu nction() { | |
| 46 | this.$el .popup({di smissible: false}); | |
| 47 | this.add AriaRole() ; | |
| 48 | ||
| 49 | this.ini tializeFor mValidatio n({errorLa belContain er: '.erro r-list'}); | |
| 50 | this.sho wChildView ('vvcNameR egion', ne w VeteranV ideoConnec tNameSecti onView({ | |
| 51 | mode l: this.mo del, | |
| 52 | idPr efix: this ._idPrefix , | |
| 53 | })); | |
| 54 | ||
| 55 | this.hid eErrorSect ion(); | |
| 56 | }, | |
| 57 | fo rmatVVCHre f: functio n() { | |
| 58 | var vvcU RL = this. model.get( 'virtualMe etingRoom' ).url; | |
| 59 | var quer yStartInde x = vvcURL .indexOf(' ?') + 1; | |
| 60 | var user InputName = 'name=' + encodeUR IComponent (this.$el. find('#mod al-text-na me').val() ) + '&'; | |
| 61 | // puts name query param aft er '?' | |
| 62 | var href = vvcURL. substr(0, queryStart Index) + u serInputNa me + vvcUR L.substr(q ueryStartI ndex); | |
| 63 | return h ref; | |
| 64 | }, | |
| 65 | /* * | |
| 66 | * Connects to Veteran Video Con nect confe rence app which uses Pexip Inf inity | |
| 67 | * Documenta tion: http s://docs.p exip.com/e nd_user/gu ide_for_ad mins/infin ity_connec t_url.htm | |
| 68 | * i.e. htt ps:// DNS . URL /vvc-app/? join=1&med ia=1&escal ate=1&conf erence= PII &pin=86635 60788# | |
| 69 | * PRE-CONDI TION: VMR URL has be en pre-con figured to include p arams | |
| 70 | * @returns {*} | |
| 71 | * / | |
| 72 | co ntinueToVV C: functio n() { | |
| 73 | var href ; | |
| 74 | this.res etFormVali dation(); | |
| 75 | if (this .$el.find( 'form').va lid()) { | |
| 76 | href = this.fo rmatVVCHre f(); | |
| 77 | Glob al.getUtil ities().op enNewTab(h ref); | |
| 78 | ||
| 79 | this .closePopu p(); | |
| 80 | ||
| 81 | } else { | |
| 82 | this .showError Section(); | |
| 83 | } | |
| 84 | }, | |
| 85 | pr eventDefau lt: functi on(e) { | |
| 86 | e.preven tDefault() ; | |
| 87 | }, | |
| 88 | re setFormVal idation: f unction() { | |
| 89 | this.hid eErrorSect ion(); | |
| 90 | this.val idator.res etForm(); | |
| 91 | }, | |
| 92 | sh owErrorSec tion: func tion() { | |
| 93 | if (!thi s.isDestro yed()) { | |
| 94 | this .$el.find( '.error-se ction').re moveClass( 'hidden'); | |
| 95 | this .$el.find( '#error-li st-heading ').focus() ; | |
| 96 | } | |
| 97 | }, | |
| 98 | hi deErrorSec tion: func tion() { | |
| 99 | if (!thi s.isDestro yed()) { | |
| 100 | this .$el.find( '.error-se ction').ad dClass('hi dden'); | |
| 101 | this .$el.find( '#error-li st-heading ').html('' ); | |
| 102 | } | |
| 103 | }, | |
| 104 | })); | |
| 105 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.