Commit 096254362e30ece489fc21294a23c804cafe0c09

Authored by Elena.Budnik
1 parent d3ee926a

redmine 6852; mydata param; mask

Showing 1 changed file with 9 additions and 9 deletions   Show diff stats
js/app/views/MyDataUI.js
... ... @@ -396,15 +396,15 @@ Ext.define('amdaUI.MyDataUI', {
396 396 }
397 397  
398 398 if (maskParts.length == 2) {
399   - if (this.fileObject.get('fileName').indexOf(maskParts[1]) < 0) {
400   - myDesktopApp.warningMsg('No correspondance between ' +mask+' and '+this.fileObject.get('fileName'));
401   - return false;
402   - }
403   - }
404   -
405   - if ((maskParts[0].length + maskParts[1].length) < 6) {
406   - myDesktopApp.warningMsg('Mask cannot be shorter than 6 letters');
407   - return false;
  399 + if (this.fileObject.get('fileName').indexOf(maskParts[1]) < 0) {
  400 + myDesktopApp.warningMsg('No correspondance between ' +mask+' and '+this.fileObject.get('fileName'));
  401 + return false;
  402 + }
  403 +
  404 + if ((maskParts[0].length + maskParts[1].length) < 6) {
  405 + myDesktopApp.warningMsg('Mask cannot be shorter than 6 letters');
  406 + return false;
  407 + }
408 408 }
409 409  
410 410 return true;
... ...