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\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\new-appointment-request\views\requests\phone-contact | section-view.js | Fri Dec 7 13:07:42 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 142 |
| 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 | 'under score', | |
| 4 | 'backb one', | |
| 5 | 'mario nette', | |
| 6 | 'modul es/form/se ction-view ', | |
| 7 | ||
| 8 | 'text! modules/ne w-appointm ent-reques t/views/re quests/pho ne-contact /template. html', | |
| 9 | 'json! modules/ne w-appointm ent-reques t/views/re quests/for m.json', | |
| 10 | ], | |
| 11 | function( | |
| 12 | _, | |
| 13 | Backbo ne, | |
| 14 | Marion ette, | |
| 15 | Sectio nView, | |
| 16 | CommWi thClerkSec tion, | |
| 17 | metada ta | |
| 18 | ) { | |
| 19 | 'use s trict'; | |
| 20 | ||
| 21 | return SectionVi ew.extend( { | |
| 22 | ev ents: {'ke yup input' : 'validat ePhoneAtMa xLength'}, | |
| 23 | te mplate: Co mmWithCler kSection, | |
| 24 | in itialize: function(o ptions) { | |
| 25 | var sect ionName = 'request-d etails-pho ne-contact -section'; | |
| 26 | this.leg end = this .getLegend FromMetada ta(section Name, meta data, fals e) || ''; | |
| 27 | this.col lection = this.getQu estionsFro mMetadata( sectionNam e, metadat a); | |
| 28 | ||
| 29 | // initi alize list ener to 'c hange:valu e' after s tatic valu es are set | |
| 30 | this.ini tializeQue stionEvent Listeners( ); | |
| 31 | }, | |
| 32 | on DomRefresh : function () { | |
| 33 | this.ini tChildren( ); | |
| 34 | this.add FormValida tionRules( ); | |
| 35 | }, | |
| 36 | // TODO: mov e to form- view-mixin | |
| 37 | ad dFormValid ationRules : function () { | |
| 38 | this.$el .find('#ph oneNumber' ).rules('a dd', { | |
| 39 | phon eUS: true, | |
| 40 | mess ages: {pho neUS: 'Ple ase enter a valid US Phone num ber.'}, | |
| 41 | }); | |
| 42 | ||
| 43 | this.$el .find('#ve rifyPhoneN umber').ru les('add', { | |
| 44 | equa lTo: '#pho neNumber', | |
| 45 | mess ages: {equ alTo: 'The phone num bers do no t match.'} , | |
| 46 | }); | |
| 47 | }, | |
| 48 | va lidatePhon eAtMaxLeng th: functi on(e) { | |
| 49 | var phon eNumberLen gth = 14; | |
| 50 | if ($(e. currentTar get).val() .length == = phoneNum berLength) { | |
| 51 | $(e. currentTar get).valid (); | |
| 52 | } | |
| 53 | }, | |
| 54 | updateF DNS el: functi on(model) { | |
| 55 | var id = model.get ('id'); | |
| 56 | var val = model.ge t('value') ; | |
| 57 | var sele cted; | |
| 58 | var time sToCall; | |
| 59 | ||
| 60 | if (id = == 'bestTi metoCall') { | |
| 61 | sele cted = mod el.get('se lected'); | |
| 62 | time sToCall = selected ? | |
| 63 | _.union(th is.model.g et('bestTi metoCall') , [val]) : | |
| 64 | _.without( this.model .get('best TimetoCall '), val); | |
| 65 | ||
| 66 | this .model.set (id, times ToCall); | |
| 67 | } else { | |
| 68 | this .model.set (id, val); | |
| 69 | } | |
| 70 | }, | |
| 71 | }); | |
| 72 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.