Produced by Araxis Merge on 12/7/2018 11:36:04 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\new-appointment-request\views\requests\express-care | section-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\new-appointment-request\views\requests\express-care | section-view.js | Fri Dec 7 13:07:42 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 140 |
| 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 | // normall y the mode l is passe d to the v iew instea d of the v iew creati ng the mod el | |
| 2 | define([ | |
| 3 | 'mario nette', | |
| 4 | 'App', | |
| 5 | 'modul es/appoint ments/appo intments-m odule', | |
| 6 | ||
| 7 | 'modul es/form/se ction-view ', | |
| 8 | 'text! modules/ne w-appointm ent-reques t/views/re quests/exp ress-care/ template.h tml', | |
| 9 | 'json! modules/ne w-appointm ent-reques t/views/re quests/exp ress-care/ section.js on', | |
| 10 | ], | |
| 11 | function( | |
| 12 | Marion ette, | |
| 13 | app, | |
| 14 | module , | |
| 15 | ||
| 16 | Sectio nView, | |
| 17 | templa te, | |
| 18 | metada ta | |
| 19 | ) { | |
| 20 | 'use s trict'; | |
| 21 | ||
| 22 | return SectionVi ew.extend( { | |
| 23 | te mplate: te mplate, | |
| 24 | collection Events: {' change:val ue': 'upda teF DNS el'}, | |
| 25 | mo delEvents: {'change: reasonForV isit': 'sh owHideOthe rReasonQue stionAndVa lidation'} , | |
| 26 | in itialize: function(o ptions) { | |
| 27 | var sect ionName = 'express-c are-detail s-reason-s ection'; | |
| 28 | this.leg end = this .getLegend FromMetada ta(section Name, meta data, fals e) || ''; | |
| 29 | this.col lection = this.getQu estionsFro mMetadata( sectionNam e, metadat a); | |
| 30 | ||
| 31 | // initi alize list ener to 'c hange:valu e' after s tatic valu es are set | |
| 32 | this.ini tializeQue stionEvent Listeners( ); | |
| 33 | this.val idator = o ptions.val idator; | |
| 34 | this.set ReasonQues tionModel( options.re asons); | |
| 35 | }, | |
| 36 | on Render: fu nction() { | |
| 37 | this.ini tChildren( ); | |
| 38 | this.sho wHideOther ReasonQues tionAndVal idation(); | |
| 39 | }, | |
| 40 | se tReasonQue stionModel : function (reasons) { | |
| 41 | var reas onForVisit Question = this.coll ection.get ('reasonFo rVisit'); | |
| 42 | var reas onOptions = []; | |
| 43 | reasons. each(funct ion(reason ) { | |
| 44 | reas onOptions. push({ | |
| 45 | id: reason .get('id') , | |
| 46 | text: reas on.get('na me'), | |
| 47 | value: rea son.get('i d'), | |
| 48 | }); | |
| 49 | }, this) ; | |
| 50 | reasonFo rVisitQues tion.set(' values', r easonOptio ns); | |
| 51 | }, | |
| 52 | sh owHideOthe rReasonQue stionAndVa lidation: function() { | |
| 53 | // id 13 is option "Other" | |
| 54 | this.sho wHideQuest ionAndVali dation('.o ther-quest ion', | |
| 55 | !(th is.model.h as('reason ForVisit') && this.m odel.get(' reasonForV isit') === 'ZZ')); | |
| 56 | }, | |
| 57 | sh owHideQues tionAndVal idation: f unction(se lector, is Hidden) { | |
| 58 | var $que stion; | |
| 59 | ||
| 60 | if (!thi s.isDestro yed()) { | |
| 61 | $que stion = th is.$el.fin d(selector ); | |
| 62 | ||
| 63 | $que stion.togg leClass('h idden', is Hidden); | |
| 64 | ||
| 65 | if ( isHidden) { | |
| 66 | this.hideV alidationE rrorsFor($ question); | |
| 67 | } | |
| 68 | } | |
| 69 | }, | |
| 70 | }); | |
| 71 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.