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

221.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\form 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\form section-view.js Fri Dec 7 13:07:22 2018 UTC

221.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 226
Changed 2 6
Inserted 0 0
Removed 0 0

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

221.4 Active regular expressions

No regular expressions were active.

221.5 Comparison detail

  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       'under score',
  4       'backb one',
  5       'mario nette',
  6       'text! modules/fo rm/section .html',
  7       'modul es/form/qu estion-vie w',
  8       'modul es/form/qu estions-co llection',
  9   ], functio n(
  10       _,
  11       Backbo ne,
  12       Marion ette,
  13       templa te,
  14       Questi onView,
  15       Questi ons
  16   ) {
  17       'use s trict';
  18       return  Backbone. Marionette .Composite View.exten d({
  19           ta gName: 'fi eldset',
  20           //  acts like  Collectio nView unle ss templat e and chil dViewConta iner given
  21           cl assName: ' form-secti on',
  22           te mplate: te mplate,
  23           co llectionEv ents: {
  24                  'change:va lue': 'upd ateF DNS     el',
  25                  'change:se lected': ' updateF DNS     el',
  26           },
  27           ch ildView: Q uestionVie w,
  28  
  29           ge tLegendFro mMetadata:  function( sectionNam e, metadat a, include AllMetaDat a) {
  30                var _inc ludeAllMet aData = in cludeAllMe taData ||  false;
  31                var json Sections =  metadata. sections;
  32                var json Section =  _.find(jso nSections,  function( section) {
  33                    retu rn section .section = == section Name;
  34                });
  35  
  36                this.sec tionName =  sectionNa me;
  37  
  38                return ( _includeAl lMetaData)  ? jsonSec tion : jso nSection.l egend;
  39           },
  40           ge tQuestions FromMetada ta: functi on(section Name, meta data, opti ons) {
  41                var json Sections =  metadata. sections;
  42                var json Section =  _.find(jso nSections,  function( section) {
  43                    retu rn section .section = == section Name;
  44                });
  45  
  46                var idPr efix = (ty peof optio ns !== 'un defined')  ? options. idPrefix :  jsonSecti on.idPrefi x;
  47  
  48                var json Questions  = jsonSect ion.questi ons;
  49  
  50                this.sec tionName =  sectionNa me;
  51  
  52                _.each(j sonQuestio ns, functi on(questio n) {
  53                    ques tion.idPre fix = idPr efix;
  54                });
  55  
  56                return n ew Questio ns(jsonQue stions);
  57           },
  58           on BeforeRend er: functi on() {
  59                this.ini tModels();
  60           },
  61           on Render: fu nction() {
  62                this.ini tChildren( );
  63                this.jQM Create();
  64           },
  65           //  Manually  trigger ch ange event  since arr ay or nest ed object  inside mod el attribu te
  66           //  does not  do so and  is needed  for FormMi xin listen ers.
  67           //  Workaroun d for Form Mixin. Tri gger chang e on this. model
  68           //  when chan ge to coll ection ite m's value  attribute  is heard.
  69           in itializeQu estionEven tListeners : function () {
  70                if (this .collectio n) {
  71                    this .collectio n.on('chan ge:value',  function( model) {
  72                         this.model .trigger(' change', t his.model) ;
  73                    }, t his);
  74                }
  75           },
  76           in itChildren : function () {
  77                var self  = this;
  78                this.chi ldren.each (function( child) {
  79                    var  eventName  = child.mo del.get('e vent');
  80                    if ( eventName)  {
  81                         child.on(e ventName,  function()  {
  82                             self.t rigger(eve ntName, se lf.model);
  83                         });
  84                    }
  85                });
  86           },
  87           in itModels:  function()  {
  88                var self  = this;
  89                _.each(t his.collec tion.model s, functio n(model) {
  90                    var  id = model .get('id') ;
  91                    var  val = self .model.get (id);
  92                    if ( !_.isUndef ined(val))  {
  93                         model.set( 'value', v al);
  94                         model.set( 'selected' , val);
  95                    }
  96                });
  97           },
  98             updateF DNS     el: functi on(model)  {
  99                var id =  model.get ('id');
  100                var val  = model.ge t('value') ;
  101  
  102                this.mod el.set(id,  val);
  103           },
  104           jQ MCreate: f unction()  {
  105                this.$el .trigger(' create');
  106           },
  107           hi deValidati onErrorsFo r: functio n($element ) {
  108                if (this .validator ) {
  109                    this .validator .hideThese (this.vali dator.erro rsFor($ele ment.find( 'input, te xtarea, se lect')));
  110                }
  111           },
  112           te mplateCont ext: funct ion() {
  113                return { legend: th is.legend} ;
  114           },
  115       });
  116   });