Momentor (moment optimization)

This commit is contained in:
RainLoop Team 2015-03-07 04:32:06 +04:00
parent 7750587be1
commit 147dce6e4a
20 changed files with 331 additions and 173 deletions

View file

@ -6,7 +6,6 @@
var
_ = require('_'),
ko = require('ko'),
moment = require('moment'),
Utils = require('Common/Utils'),
@ -66,6 +65,7 @@
AdvancedSearchPopupView.prototype.buildSearchString = function ()
{
var
oM = null,
aResult = [],
sFrom = Utils.trim(this.from()),
sTo = Utils.trim(this.to()),
@ -117,7 +117,7 @@
if (-1 < this.selectedDateValue())
{
aResult.push('date:' + moment().subtract('days', this.selectedDateValue()).format('YYYY.MM.DD') + '/');
aResult.push('date:' + require('Common/Momentor').searchSubtractFormatDateHelper(this.selectedDateValue()) + '/');
}
if (sText && '' !== sText)