214. 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.

214.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\preferred-provider\preferences preferred-provider-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\preferred-provider\preferences preferred-provider-section-view.js Fri Dec 7 13:07:18 2018 UTC

214.2 Comparison summary

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

214.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

214.4 Active regular expressions

No regular expressions were active.

214.5 Comparison detail

  1   define([
  2       'under score',
  3       'backb one',
  4       'mario nette',
  5       'modul es/form/se ction-view ',
  6       'json! modules/co mmunity-ca re-request /new-appoi ntment-req uest-quest ion/prefer red-provid er/prefere nces/prefe rred-provi der.json',  // eslint -disable-l ine max-le n
  7   ],
  8   function(
  9       _,
  10       Backbo ne,
  11       Marion ette,
  12       Sectio nView,
  13       metada ta
  14   ) {
  15       'use s trict';
  16       return  SectionVi ew.extend( {
  17           in itialize:  function(o ptions) {
  18                var sect ionName =  'primary-c are-sectio n';
  19                this.leg end = this .getLegend FromMetada ta(section Name, meta data, fals e) || '';
  20                this.col lection =  this.getQu estionsFro mMetadata( sectionNam e, metadat a) || new  Backbone.C ollection( );
  21                // initi alize list ener to 'c hange:valu e' after s tatic valu es are set
  22                this.new Values = t his.getOff iceHoursNe eded();
  23                this.col lection.ge t('officeH ours').set ('values',  this.newV alues);
  24                this.ini tializeQue stionEvent Listeners( );
  25           },
  26           ge tOfficeHou rsNeeded:  function()  {
  27                var newV alues = [] ;
  28                var offi ceHours =  this.model .get('offi ceHours');
  29                _.each(t his.collec tion.get(' officeHour s').get('v alues'), f unction (v alueObj) {
  30                    var  key;
  31                    var  time;
  32                    valu eObj.selec ted = fals e;
  33                    if ( officeHour s) {
  34                         for (key i n officeHo urs) {
  35                             if (of ficeHours. hasOwnProp erty(key))  {
  36                                 ti me = offic eHours[key ];
  37                                 if  (time ===  valueObj. value) {
  38                                      valueObj .selected  = true;
  39                                 }
  40                             }
  41                         }
  42                    }
  43                    newV alues.push (valueObj) ;
  44                });
  45                return n ewValues;
  46           },
  47             updateF DNS     el: functi on (model)  {
  48                var id =  model.get ('id');
  49                var val  = model.ge t('value') ;
  50                var sele cted;
  51                var time sToComeIn;
  52                if (id = == 'office Hours') {
  53                    sele cted = mod el.get('se lected');
  54                    if ( !Array.isA rray(selec ted)) {
  55                         timesToCom eIn = sele cted ?
  56                             _.unio n(this.mod el.get('of ficeHours' ), [val])  :
  57                             _.with out(this.m odel.get(' officeHour s'), val);
  58                         this.model .set(id, t imesToCome In);
  59                    }
  60                } else {
  61                    this .model.set (id, val);
  62                }
  63           },
  64       });
  65   });