Commit fdab9863 authored by Raph El's avatar Raph El
Browse files

Modif test

parent 318f2cd5
......@@ -372,8 +372,8 @@ function calculateAgendaWindow(nbMonth){
var today = new Date();
var todayMoment = moment().seconds(0).minute(0).hour(0);
mylog.log('directory.js calculateAgendaWindow today', typeof today, today);
mylog.log('directory.js calculateAgendaWindow today', typeof todayMoment, todayMoment, todayMoment.valueOf());
// mylog.log('directory.js calculateAgendaWindow today', typeof today, today);
// mylog.log('directory.js calculateAgendaWindow today', typeof todayMoment, todayMoment, todayMoment.valueOf());
today = new Date(today.setSeconds(0));
today = new Date(today.setMinutes(0));
today = new Date(today.setHours(0));
......@@ -381,11 +381,11 @@ function calculateAgendaWindow(nbMonth){
//STARTDATE = moment(todayMoment.format()).valueOf();
STARTDATE = today.setDate(today.getDate());
mylog.log('directory.js calculateAgendaWindow today2', typeof today, today);
mylog.log('directory.js calculateAgendaWindow todayMoment', typeof todayMoment, todayMoment.format(), todayMoment.valueOf());
/// mylog.log("directory.js calculateAgendaWindow todayUTC0", typeof todayUTC0, todayUTC0, todayUTC0.format(), todayUTC0.valueOf());
mylog.log('directory.js calculateAgendaWindow STARTDATE', typeof STARTDATE, STARTDATE);
mylog.log('directory.js calculateAgendaWindow end',STARTDATE);
// mylog.log('directory.js calculateAgendaWindow today2', typeof today, today);
// mylog.log('directory.js calculateAgendaWindow todayMoment', typeof todayMoment, todayMoment.format(), todayMoment.valueOf());
// /// mylog.log("directory.js calculateAgendaWindow todayUTC0", typeof todayUTC0, todayUTC0, todayUTC0.format(), todayUTC0.valueOf());
// mylog.log('directory.js calculateAgendaWindow STARTDATE', typeof STARTDATE, STARTDATE);
// mylog.log('directory.js calculateAgendaWindow end',STARTDATE);
searchObject.startDate = Math.floor(STARTDATE / 1000);
......
......@@ -505,7 +505,7 @@ var searchInterface={
SEARCH ENGINE
-------------------------------*/
constructObjectAndUrl: function(notUrl){
mylog.log("searchInterface.constructObjectAndUrl", searchObject);
mylog.log("searchInterface.constructObjectAndUrl", searchObject, notUrl);
getStatus="";
var searchConstruct={};
if(searchObject.text != "")
......@@ -571,13 +571,13 @@ var searchInterface={
if(searchObject.community != false)
searchConstruct.community = searchObject.community;
// Locality
searchConstruct.locality = getSearchLocalityObject();
searchInterface.countActiveFilters();
// searchConstruct.locality = getSearchLocalityObject();
// searchInterface.countActiveFilters();
//Construct url with all necessar params
if(typeof notUrl == "undefined" ||
notUrl == null ||
notUrl == false)
if(typeof notUrl === "undefined" ||
notUrl === null ||
notUrl === false)
urlCtrl.manageHistory();
return searchConstruct;
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment