Produced by Araxis Merge on 12/7/2018 11:36:02 AM Central Standard 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 | C:\SCRUB\MHED\MHED\VAR 4.10.0\var-web-release-4.10@e10f18de1ef\veteran-appointment-requests\app\modules\community-care-request\new-appointment-request-question\request-preferences | community-care-appointment-preferences-layout-view.js | Mon Oct 22 23:25:20 2018 UTC |
| 2 | C:\MHED-scrubbed\MHED\MHED\VAR 4.10.0\var-web-release-4.10@e10f18de1ef\veteran-appointment-requests\app\modules\community-care-request\new-appointment-request-question\request-preferences | community-care-appointment-preferences-layout-view.js | Fri Dec 7 13:07:18 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 158 |
| 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 | 'under score', | |
| 3 | 'Vent' , | |
| 4 | 'modul es/communi ty-care-re quest/view /community -care-view ', | |
| 5 | 'modul es/new-app ointment-w izard/wiza rd-step-mo del', | |
| 6 | 'modul es/new-app ointment-r equest/vie ws/request s/date-tim e/layout-v iew', | |
| 7 | 'modul es/communi ty-care-re quest/new- appointmen t-request- question/n otificatio n-selectio n/communit y-care-not ification- settings-l ayout-view ', // esli nt-disable -line max- len | |
| 8 | 'modul es/communi ty-care-re quest/new- appointmen t-request- question/p referred-p rovider/pr eferred-pr ovider-lay out-view', // eslint -disable-l ine max-le n | |
| 9 | 'text! modules/co mmunity-ca re-request /new-appoi ntment-req uest-quest ion/reques t-preferen ces/commun ity-care-a ppointment -preferenc es-layout. html', // eslint-dis able-line max-len | |
| 10 | ], | |
| 11 | function( | |
| 12 | _, | |
| 13 | vent, | |
| 14 | Commun ityCareVie w, | |
| 15 | Wizard StepModel, | |
| 16 | DateTi meLayoutVi ew, | |
| 17 | CCNoti ficationSe ttingsLayo ut, | |
| 18 | Primar yCareLayou tView, | |
| 19 | templa te | |
| 20 | ) { | |
| 21 | 'use s trict'; | |
| 22 | ||
| 23 | // TOD O make a W izard Page Layout Vi ew that | |
| 24 | // - this can extend to make s ome method s such as declaimF DNS trols, | |
| 25 | // d isableCont inue, enab leContinue , showPrev ious DRY | |
| 26 | return Community CareView.e xtend({ | |
| 27 | cl assName: ' view', | |
| 28 | te mplate: _. template(t emplate), | |
| 29 | re gions: { | |
| 30 | appointm entRequest Preference s: '.appoi ntment-req uest-prefe rences', | |
| 31 | }, | |
| 32 | ev ents: _.ex tend({}, C ommunityCa reView.pro totype.eve nts, { | |
| 33 | 'blur #o ptionDate1 ': 'handle ModelChang e', | |
| 34 | 'blur #o ptionDate2 ': 'handle ModelChang e', | |
| 35 | 'blur #o ptionDate3 ': 'handle ModelChang e', | |
| 36 | }) , | |
| 37 | in itialize: function(o ptions) { | |
| 38 | if (_.is Undefined( options)) { | |
| 39 | this .model = n ew WizardS tepModel.M odel(); | |
| 40 | } else { | |
| 41 | this .model = o ptions.mod el; | |
| 42 | this .validator = options .validator ; | |
| 43 | this .isValid = options.i sValid; | |
| 44 | } | |
| 45 | }, | |
| 46 | on Render: fu nction() { | |
| 47 | this.sho wRegions() ; | |
| 48 | }, | |
| 49 | on DomRefresh : function () { | |
| 50 | this.val idateOptio nDates(); | |
| 51 | // we in itialize a handle to the butto ns and dis able | |
| 52 | ||
| 53 | // if al l the requ ired field s are met, we enable | |
| 54 | this.han dleModelCh ange(); | |
| 55 | }, | |
| 56 | ||
| 57 | sh owRegions: function( ) { | |
| 58 | this.sho wChildView ('appointm entRequest Preference s', new Da teTimeLayo utView({mo del: this. model})); | |
| 59 | }, | |
| 60 | va lidateOpti onDates: f unction() { | |
| 61 | _.each(t his.model. attributes , function (value, ke y) { | |
| 62 | if ( _.includes (key, 'opt ionDate') && value) { | |
| 63 | this.$el.f ind('#' + key).valid (); | |
| 64 | } | |
| 65 | }.bind(t his)); | |
| 66 | }, | |
| 67 | to Continue: function(e ) { | |
| 68 | if (this .isValid() ) { | |
| 69 | this .checkType ofCare(); | |
| 70 | } | |
| 71 | }, | |
| 72 | ch eckTypeofC are: funct ion() { | |
| 73 | if (this .model.get ('careType Name') !== 'Primary Care (find a provide r)') { | |
| 74 | vent .trigger(' show:nextW izardPage' , PrimaryC areLayoutV iew, 1); | |
| 75 | } else { | |
| 76 | vent .trigger(' show:nextW izardPage' , CCNotifi cationSett ingsLayout , 1); | |
| 77 | } | |
| 78 | }, | |
| 79 | }); | |
| 80 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.