211. EPMO Open Source Coordination Office Redaction File Detail Report

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.

211.1 Files compared

# 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\notification-selection\request-details request-details-phone-contact-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\community-care-request\new-appointment-request-question\notification-selection\request-details request-details-phone-contact-section-view.js Fri Dec 7 13:07:18 2018 UTC

211.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 240
Changed 1 2
Inserted 0 0
Removed 0 0

211.3 Comparison options

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

211.4 Active regular expressions

No regular expressions were active.

211.5 Comparison detail

  1   /* eslint- disable ma x-len */
  2   // normall y the mode l is passe d to the v iew instea d of the v iew creati ng the mod el
  3   define([
  4       'under score',
  5       'backb one',
  6       'mario nette',
  7       'modul es/form/se ction-view ',
  8       'text! modules/co mmunity-ca re-request /new-appoi ntment-req uest-quest ion/notifi cation-sel ection/req uest-detai ls/request -details-p hone-conta ct.html',
  9       'json! modules/co mmunity-ca re-request /new-appoi ntment-req uest-quest ion/notifi cation-sel ection/req uest-detai ls/request -phone-det ails.json' ,
  10   ], functio n (
  11       _,
  12       Backbo ne,
  13       Marion ette,
  14       Sectio nView,
  15       CommWi thClerkSec tion,
  16       metada ta
  17   ) {
  18       'use s trict';
  19  
  20       return  SectionVi ew.extend( {
  21           ev ents: {'ke yup input' : 'validat ePhoneAtMa xLength'},
  22           te mplate: Co mmWithCler kSection,
  23           in itialize:  function ( options) {
  24                var sect ionName =  'request-d etails-pho ne-contact -section';
  25                // when  we have va lues on mo del, we ne ed to sele ct them
  26                var best TimeToCall  = this.mo del.get('b estTimeToC all');
  27  
  28                var newV alues = [] ;
  29                var defa ultValues  = [];
  30  
  31                this.leg end = this .getLegend FromMetada ta(section Name, meta data, fals e) || '';
  32                this.col lection =  this.getQu estionsFro mMetadata( sectionNam e, metadat a);
  33  
  34                /**
  35                    Iter ates throu gh best ti mes to cal l: morning , afternoo n, evening .
  36                    It t hen checks  them if a lready ent ered and a dds them t o the mode l
  37                 */
  38                _.each(t his.collec tion.get(' bestTimeTo Call').get ('values') , function  (valueObj ) {
  39                    var  key;
  40                    var  time;
  41  
  42                    // r eset selec ted
  43                    valu eObj.selec ted = fals e;
  44  
  45                    // u ndefined i f first lo ading this  section
  46                    // a rray of ch ecked time s to call
  47                    if ( bestTimeTo Call) {
  48  
  49                         for (key i n bestTime ToCall) {
  50                             if (be stTimeToCa ll.hasOwnP roperty(ke y)) {
  51                                 ti me = bestT imeToCall[ key];
  52  
  53                                 if  (time ===  valueObj. value) {
  54                                      valueObj .selected  = true;
  55                                 }
  56                             }
  57                         }
  58                    } el se if (val ueObj.defa ultSelecte d) {
  59                         valueObj.s elected =  true;
  60                         defaultVal ues.push(v alueObj.va lue);
  61                    }
  62  
  63                    newV alues.push (valueObj) ;
  64                });
  65  
  66                this.col lection.ge t('bestTim eToCall'). set('value s', newVal ues);
  67  
  68                // this  updates th e wizard m odel with  the correc t array of  options i f any defa ults were  specified
  69                if (defa ultValues. length > 1 ) {
  70                    this .model.set ('bestTime ToCall', d efaultValu es);
  71                }
  72  
  73                // initi alize list ener to 'c hange:valu e' after s tatic valu es are set
  74                this.ini tializeQue stionEvent Listeners( );
  75           },
  76           on Render: fu nction ()  {
  77                this.ini tChildren( );
  78  
  79           },
  80  
  81           on DomRefresh : function () {
  82                this.add FormValida tionRules( );
  83           },
  84  
  85           ad dFormValid ationRules : function  () {
  86                this.$el .find('#ph oneNumber' ).rules('a dd', {
  87                    phon eUS: true,
  88                    mess ages: {pho neUS: 'Ple ase enter  a valid US  Phone num ber.'},
  89                });
  90           },
  91           va lidatePhon eAtMaxLeng th: functi on (e) {
  92                var maxL ength = 14 ;
  93                if ($(e. currentTar get).val() .length == = maxLengt h) {
  94                    $(e. currentTar get).valid ();
  95                }
  96           },
  97             updateF DNS     el: functi on (model)  {
  98                var id =  model.get ('id');
  99                var val  = model.ge t('value') ;
  100                var sele cted;
  101                var time sToCall;
  102  
  103                if (id = == 'bestTi meToCall')  {
  104                    // g et the tim es to call  that are  selected
  105                    sele cted = mod el.get('se lected');
  106  
  107                    if ( !Array.isA rray(selec ted)) {
  108                         // sets ti mesToCall  to be an a rray of al l checked  times
  109                         timesToCal l = select ed ?
  110                             _.unio n(this.mod el.get('be stTimeToCa ll'), [val ]) :
  111                             _.with out(this.m odel.get(' bestTimeTo Call'), va l);
  112  
  113                         // set bes tTimeToCal l to have  its value  be the arr ay of time s to call.
  114                         this.model .set(id, t imesToCall );
  115                    }
  116                } else {
  117                    this .model.set (id, val);
  118                }
  119           },
  120       });
  121   });