Commit 60a93cfd authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

refactor var url to var urlCtrl

parent a1e33426
......@@ -3,22 +3,22 @@ var prevStep = 0;
var steps = ["explain1","live","explain2","event","explain3","orga","explain4","project","explain5","person"];
var slides = {
explain1 : function() { showDefinition("explainCommunectMe")},
live : function() { url.loadByHash("#default.live")},
live : function() { urlCtrl.loadByHash("#default.live")},
explain2 : function() { showDefinition("explainCartographiedeReseau")},
event : function() { url.loadByHash("#event.detail.id.57bb4078f6ca47cb6c8b457d")},
event : function() { urlCtrl.loadByHash("#event.detail.id.57bb4078f6ca47cb6c8b457d")},
explain3 : function() { showDefinition("explainDemoPart")},
orga : function() { url.loadByHash("#organization.detail.id.57553776f6ca47b37da93c2d")},
orga : function() { urlCtrl.loadByHash("#organization.detail.id.57553776f6ca47b37da93c2d")},
explain4 : function() { showDefinition("explainCommunecter")},
project : function() { url.loadByHash("#project.detail.id.56c1a474f6ca47a8378b45ef")},
project : function() { urlCtrl.loadByHash("#project.detail.id.56c1a474f6ca47a8378b45ef")},
explain5 : function() { showDefinition("explainProxicity")},
person : function() { url.loadByHash("#person.detail.id.54eda798f6b95cb404000903")}
person : function() { urlCtrl.loadByHash("#person.detail.id.54eda798f6b95cb404000903")}
};
function runslide(cmd)
{
if(cmd == 0){
prevStep = null;
url.loadByHash("#default.live");
urlCtrl.loadByHash("#default.live");
}
if( prevStep != null ){
......@@ -192,7 +192,7 @@ function updateField(type,id,name,value,reload){
if(data.result) {
toastr.success(data.msg);
if(reload)
url.loadByHash(location.hash);
urlCtrl.loadByHash(location.hash);
}
else
toastr.error(data.msg);
......@@ -332,7 +332,7 @@ function disconnectTo(parentType,parentId,childId,childType,connectType, callbac
if (typeof callback == "function")
callback();
else
url.loadByHash(location.hash);
urlCtrl.loadByHash(location.hash);
} else {
toastr.error("You leave succesfully");
}
......@@ -372,7 +372,7 @@ function validateConnection(parentType, parentId, childId, childType, linkOption
callback(parentType, parentId, childId, childType, linkOption);
else{
toastr.success(data.msg);
url.loadByHash(location.hash);
urlCtrl.loadByHash(location.hash);
}
} else {
......@@ -402,7 +402,7 @@ function follow(parentType, parentId, childId, childType, callback){
if (typeof callback == "function")
callback();
else
url.loadByHash(location.hash);
urlCtrl.loadByHash(location.hash);
}
else
toastr.error(data.msg);
......@@ -462,7 +462,7 @@ function connectTo(parentType, parentId, childId, childType, connectType, parent
if(data.result){
addFloopEntity(data.parent["_id"]["$id"], data.parentType, data.parent);
toastr.success(data.msg);
url.loadByHash(location.hash);
urlCtrl.loadByHash(location.hash);
}
else{
if(typeof(data.type)!="undefined" && data.type=="info")
......@@ -511,7 +511,7 @@ function connectTo(parentType, parentId, childId, childType, connectType, parent
if(data.result){
addFloopEntity(data.parent["_id"]["$id"], data.parentType, data.parent);
toastr.success(data.msg);
url.loadByHash(location.hash);
urlCtrl.loadByHash(location.hash);
}
else{
if(typeof(data.type)!="undefined" && data.type=="info")
......@@ -537,7 +537,7 @@ function connectTo(parentType, parentId, childId, childType, connectType, parent
}
var CoAllReadyLoad = false;
var url = {
var urlCtrl = {
afterLoad : null,
loadableUrls : {
"#modal." : {title:'OPEN in Modal'},
......@@ -619,34 +619,34 @@ var url = {
checkAndConvert : function (hash) {
hashT = hash.split('_');
mylog.log("-------checkAndConvert : ",hash,hashT);
pos = $.inArray( hashT[0].substring(1) , url.shortVal );
pos = $.inArray( hashT[0].substring(1) , urlCtrl.shortVal );
if( pos >= 0 ){
type = url.shortKey[pos];
type = urlCtrl.shortKey[pos];
hash = "#page.type."+type+".id."+hashT[1];
mylog.log("converted hash : ",hash);
}
return hash;
},
jsController : function (hash){
hash = url.checkAndConvert(hash);
hash = urlCtrl.checkAndConvert(hash);
//alert("jsController"+hash);
mylog.log("jsController",hash);
res = false;
$(".menuShortcuts").addClass("hide");
//mylog.log("url.loadableUrls", url.loadableUrls);
$.each( url.loadableUrls, function(urlIndex,urlObj)
//mylog.log("urlCtrl.loadableUrls", urlCtrl.loadableUrls);
$.each( urlCtrl.loadableUrls, function(urlIndex,urlObj)
{
//mylog.log("replaceAndShow2",urlIndex);
if( hash.indexOf(urlIndex) >= 0 )
{
checkMenu(urlObj, hash);
endPoint = url.loadableUrls[urlIndex];
endPoint = urlCtrl.loadableUrls[urlIndex];
mylog.log("jsController 2",endPoint,"login",endPoint.login,endPoint.hash );
if( typeof endPoint.login == undefined || !endPoint.login || ( endPoint.login && userId ) ){
//alises are renaming of urls example default.home could be #home
if( endPoint.alias ){
endPoint = url.jsController(endPoint.alias);
endPoint = urlCtrl.jsController(endPoint.alias);
return false;
}
if( endPoint.aliasParam ){
......@@ -660,7 +660,7 @@ var url = {
}
});
});
endPoint = url.jsController(alias);
endPoint = urlCtrl.jsController(alias);
return false;
}
// an action can be connected to a url, and executed
......@@ -686,7 +686,7 @@ var url = {
if(extraParams.indexOf("#") >= 0){
extraParams=extraParams.replace( "#","%hash%" );
}
path = url.convertToPath(hash);
path = urlCtrl.convertToPath(hash);
pathT = path.split('/');
//open path in a modal (#openModal)
......@@ -763,15 +763,15 @@ var url = {
searchPage = false;
//alert("url.loadByHash"+hash);
mylog.warn("url.loadByHash",hash,back);
if( url.jsController(hash) ){
mylog.log("url.loadByHash >>> hash found",hash);
//alert("urlCtrl.loadByHash"+hash);
mylog.warn("urlCtrl.loadByHash",hash,back);
if( urlCtrl.jsController(hash) ){
mylog.log("urlCtrl.loadByHash >>> hash found",hash);
}
else if( hash.indexOf("#panel") >= 0 ){
panelName = hash.substr(7);
if( (panelName == "box-login" || panelName == "box-register") && userId != "" && userId != null ){
url.loadByHash("#default.home");
urlCtrl.loadByHash("#default.home");
return false;
} else if(panelName == "box-add")
title = 'ADD SOMETHING TO MY NETWORK';
......@@ -811,90 +811,6 @@ var url = {
}
}
function decodeHtml(str) {
mylog.log("decodeHtml", str);
var txt = document.createElement("textarea");
txt.innerHTML = str;
mylog.log("decodeHtml", txt.value);
return txt.value;
}
function setTitle(str, icon, topTitle,keywords,shortDesc) { mylog.log("setTitle", str);
if(typeof icon != "undefined" && icon != "")
icon = ( icon.indexOf("<i") >= 0 ) ? icon : "<i class='fa fa-"+icon+"'></i> ";
//$(".moduleLabel").html( icon +" "+ str);
if(topTitle)
str = topTitle;
$(document).prop('title', ( str != "" ) ? str : "Communecter, se connecter à sa commune" );
if(notNull(keywords))
$('meta[name="keywords"]').attr("content",keywords);
else
$('meta[name="keywords"]').attr("content","communecter,connecter, commun,commune, réseau, sociétal, citoyen, société, territoire, participatif, social, smarterre");
if(notNull(shortDesc))
$('meta[name="description"]').attr("content",shortDesc);
else
$('meta[name="description"]').attr("content","Communecter : Connecter à sa commune, inter connecter les communs, un réseau sociétal pour un citoyen connecté et acteur au centre de sa société.");
}
function markdownToHtml (str) {
var converter = new showdown.Converter(),
res = converter.makeHtml(str);
return res;
}
function checkMenu(urlObj, hash){
mylog.log("checkMenu *******************", hash);
//mylog.dir(urlObj);
$(".menu-button-left").removeClass("selected");
if(typeof urlObj.menuId != "undefined"){ mylog.log($("#"+urlObj.menuId).data("hash"));
if($("#"+urlObj.menuId).attr("href") == hash)
$("#"+urlObj.menuId).addClass("selected");
}
}
var backUrl = null;
function checkIsLoggued(uId){
if( uId == "" || typeof uId == "undefined" ){
mylog.warn("");
toastr.error("<h1>Section Sécuriser, Merci de vous connecter!</h1>");
setTitle("Section Sécuriser", "user-secret");
backUrl = location.hash;
showPanel( "box-login" );
resetUnlogguedTopBar();
}else
return true;
}
function resetUnlogguedTopBar() {
//put anything that needs to be reset
//replace the loggued toolBar nav by log buttons
$('.topMenuButtons').html('<button class="btn-top btn btn-success hidden-xs" onclick="showPanel(\'box-register\');"><i class="fa fa-plus-circle"></i> <span class="hidden-sm hidden-md hidden-xs">Sinscrire</span></button>'+
' <button class="btn-top btn bg-red hidden-xs" style="margin-right:10px;" onclick="showPanel(\'box-login\');"><i class="fa fa-sign-in"></i> <span class="hidden-sm hidden-md hidden-xs">Se connecter</span></button>');
}
function _checkLoggued() {
$.ajax({
type: "POST",
url: baseUrl+"/"+moduleId+"/person/logged",
success: function(data){
if( !data.userId || data.userId == "" || typeof data.userId == "undefined" ){
/*userId = data.userId;
resetUnlogguedTopBar();*/
window.location.reload();
}
},
dataType: "json"
});
}
/* ****************
Generic non-ajax panel loading process
**************/
......@@ -934,7 +850,7 @@ function showAjaxPanel (url,title,icon, mapEnd , urlObj) {
//alert("showAjaxPanel"+url);
var dest = ( typeof urlObj == "undefined" || typeof urlObj.useHeader != "undefined" ) ? themeObj.mainContainer : ".pageContent" ;
mylog.log("showAjaxPanel", url, urlObj,dest,url.afterLoad );
mylog.log("showAjaxPanel", url, urlObj,dest,urlCtrl.afterLoad );
//var dest = themeObj.mainContainer;
hideScrollTop = false;
//alert("showAjaxPanel"+dest);
......@@ -979,10 +895,11 @@ function showAjaxPanel (url,title,icon, mapEnd , urlObj) {
uploadObj.type = contextData.type;
uploadObj.id = contextData.id;
}
if( typeof url.afterLoad == "function") {
url.afterLoad();
url.afterLoad = null;
mylog.log("9999",urlCtrl.afterLoad);
if( typeof urlCtrl.afterLoad == "function") {
alert("urlCtrl.afterLoad");
urlCtrl.afterLoad();
urlCtrl.afterLoad = null;
}
/*if(debug){
getAjax(null, baseUrl+'/'+moduleId+"/log/dbaccess", function(data){
......@@ -1011,6 +928,92 @@ function clearDbAccess() {
prevDbAccessCount = 0;
});
}*/
function decodeHtml(str) {
mylog.log("decodeHtml", str);
var txt = document.createElement("textarea");
txt.innerHTML = str;
mylog.log("decodeHtml", txt.value);
return txt.value;
}
function setTitle(str, icon, topTitle,keywords,shortDesc) { mylog.log("setTitle", str);
if(typeof icon != "undefined" && icon != "")
icon = ( icon.indexOf("<i") >= 0 ) ? icon : "<i class='fa fa-"+icon+"'></i> ";
//$(".moduleLabel").html( icon +" "+ str);
if(topTitle)
str = topTitle;
$(document).prop('title', ( str != "" ) ? str : "Communecter, se connecter à sa commune" );
if(notNull(keywords))
$('meta[name="keywords"]').attr("content",keywords);
else
$('meta[name="keywords"]').attr("content","communecter,connecter, commun,commune, réseau, sociétal, citoyen, société, territoire, participatif, social, smarterre");
if(notNull(shortDesc))
$('meta[name="description"]').attr("content",shortDesc);
else
$('meta[name="description"]').attr("content","Communecter : Connecter à sa commune, inter connecter les communs, un réseau sociétal pour un citoyen connecté et acteur au centre de sa société.");
}
function markdownToHtml (str) {
var converter = new showdown.Converter(),
res = converter.makeHtml(str);
return res;
}
function checkMenu(urlObj, hash){
mylog.log("checkMenu *******************", hash);
//mylog.dir(urlObj);
$(".menu-button-left").removeClass("selected");
if(typeof urlObj.menuId != "undefined"){ mylog.log($("#"+urlObj.menuId).data("hash"));
if($("#"+urlObj.menuId).attr("href") == hash)
$("#"+urlObj.menuId).addClass("selected");
}
}
var backUrl = null;
function checkIsLoggued(uId){
if( uId == "" || typeof uId == "undefined" ){
mylog.warn("");
toastr.error("<h1>Section Sécuriser, Merci de vous connecter!</h1>");
setTitle("Section Sécuriser", "user-secret");
backUrl = location.hash;
showPanel( "box-login" );
resetUnlogguedTopBar();
}else
return true;
}
function resetUnlogguedTopBar() {
//put anything that needs to be reset
//replace the loggued toolBar nav by log buttons
$('.topMenuButtons').html('<button class="btn-top btn btn-success hidden-xs" onclick="showPanel(\'box-register\');"><i class="fa fa-plus-circle"></i> <span class="hidden-sm hidden-md hidden-xs">Sinscrire</span></button>'+
' <button class="btn-top btn bg-red hidden-xs" style="margin-right:10px;" onclick="showPanel(\'box-login\');"><i class="fa fa-sign-in"></i> <span class="hidden-sm hidden-md hidden-xs">Se connecter</span></button>');
}
function _checkLoggued() {
$.ajax({
type: "POST",
url: baseUrl+"/"+moduleId+"/person/logged",
success: function(data){
if( !data.userId || data.userId == "" || typeof data.userId == "undefined" ){
/*userId = data.userId;
resetUnlogguedTopBar();*/
window.location.reload();
}
},
dataType: "json"
});
}
/* ****************
visualize all tagged elements on a map
**************/
......@@ -1055,7 +1058,7 @@ function showTagOnMap (tag) {
}
});
//url.loadByHash('#project.detail.id.56c1a474f6ca47a8378b45ef',null,true);
//urlCtrl.loadByHash('#project.detail.id.56c1a474f6ca47a8378b45ef',null,true);
//Sig.showFilterOnMap(tag);
}
......@@ -1379,7 +1382,7 @@ function bindLBHLinks() {
mylog.warn("bindLBHLinks",$(this).attr("href"));
mylog.warn("***************************************");
var h = ($(this).data("hash")) ? $(this).data("hash") : $(this).attr("href");
url.loadByHash( h );
urlCtrl.loadByHash( h );
});
//open any url in a modal window
$(".lbhp").off().on("click",function(e) {
......@@ -1392,7 +1395,7 @@ function bindLBHLinks() {
if( $(this).data("modalshow") )
smallMenu.open ( directory.preview( mapElements[ $(this).data("modalshow") ],h ) );
else {
url = (h.indexOf("#") == 0 ) ? url.convertToPath(h) : h;
url = (h.indexOf("#") == 0 ) ? urlCtrl.convertToPath(h) : h;
smallMenu.openAjaxHTML( baseUrl+'/'+moduleId+"/"+url);
//smallMenu.openAjaxHTML( baseUrl+'/'+moduleId+"/"+url ,"","blockUI",h);
}
......@@ -2385,9 +2388,9 @@ var elementLib = {
else{
elementLib.closeForm();
if(data.url)
url.loadByHash( data.url );
urlCtrl.loadByHash( data.url );
else if(data.id)
url.loadByHash( '#'+ctrl+'.detail.id.'+data.id );
urlCtrl.loadByHash( '#'+ctrl+'.detail.id.'+data.id );
}
}
}
......@@ -2835,7 +2838,7 @@ var typeObjLib = {
{
$('#trigger-upload').click(function() {
$('.fine-uploader-manual-trigger').fineUploader('uploadStoredFiles');
url.loadByHash(location.hash);
urlCtrl.loadByHash(location.hash);
$('#ajax-modal').modal("hide");
});
},500);
......@@ -2849,7 +2852,7 @@ var typeObjLib = {
afterUploadComplete : function(){
elementLib.closeForm();
//alert(gotoUrl+uploadObj.id);
url.loadByHash( gotoUrl );
urlCtrl.loadByHash( gotoUrl );
}
}
},
......@@ -3152,7 +3155,7 @@ var typeObjLib = {
}
},
get:function(type){
mylog.log("typeObjLib.get", type);
//mylog.log("typeObjLib.get", type);
var obj = null;
if( jsonHelper.notNull("typeObj."+type)){
if (jsonHelper.notNull("typeObj."+type+".sameAs") ){
......@@ -3164,7 +3167,7 @@ var typeObjLib = {
return obj;
},
deepGet:function(type){
mylog.log("get", type);
//mylog.log("get", type);
var obj = null;
if( jsonHelper.notNull("typeObj."+type)){
if (jsonHelper.notNull("typeObj."+type+".sameAs") ){
......@@ -3371,10 +3374,10 @@ var keyboardNav = {
keyMap : {
//"112" : function(){ $('#modalMainMenu').modal("show"); },//f1
"113" : function(){ if(userId)url.loadByHash('#person.detail.id.'+userId); else alert("login first"); },//f2
"113" : function(){ if(userId)urlCtrl.loadByHash('#person.detail.id.'+userId); else alert("login first"); },//f2
"114" : function(){ $('#openModal').modal('hide'); showMap(true); },//f3
"115" : function(){ elementLib.openForm('themes') },//f4
"117" : function(){ console.clear();url.loadByHash(location.hash) },//f6
"117" : function(){ console.clear();urlCtrl.loadByHash(location.hash) },//f6
},
keyMapCombo : {
"13" : function(){$('#openModal').modal('hide');elementLib.openForm('addElement')},//enter : add elements
......@@ -3685,10 +3688,10 @@ function initKInterface(params){ console.log("initKInterface");
});
$("#btn-sethome").click(function(){
url.loadByHash("#info.p.sethome")
urlCtrl.loadByHash("#info.p.sethome")
});
$("#btn-apropos").click(function(){
url.loadByHash("#info.p.apropos")
urlCtrl.loadByHash("#info.p.apropos")
});
var affixTop = 300;
......
......@@ -174,7 +174,7 @@ function autoCompleteSearch(name, locality, indexMin, indexMax){
type = typeObj[o.type].ctrl;
//if(type=="citoyen") type = "person";
var url = "javascript:"; //baseUrl+'/'+moduleId+ "/default/simple#" + o.type + ".detail.id." + id;
var onclick = 'url.loadByHash("#' + type + '.detail.id.' + id + '");';
var onclick = 'urlCtrl.loadByHash("#' + type + '.detail.id.' + id + '");';
var onclickCp = "";
var target = " target='_blank'";
var dataId = "";
......
......@@ -502,7 +502,7 @@ var directory = {
colPos: "left",
defaultPanelHtml : function(params){
mylog.log("----------- defaultPanelHtml",params.type,params.name);
if(directory.dirLog) mylog.log("----------- defaultPanelHtml",params.type,params.name);
str = "";
str += "<div class='col-lg-4 col-md-6 col-sm-6 col-xs-12 searchEntityContainer "+params.type+" "+params.elTagsList+" '>";
str += "<div class='searchEntity'>";
......@@ -571,7 +571,7 @@ var directory = {
if(itemType=="city"){
var citykey = params.country + "_" + params.insee + "-" + params.cp;
//$city["country"]."_".$city["insee"]."-".$city["cp"];
mylog.log(o);
if(directory.dirLog) mylog.log(o);
thisLocality += "<button class='btn btn-sm btn-default item-globalscope-checker start-new-communexion' "+
"data-scope-value='" + citykey + "' " +
"data-scope-name='" + params.name + "' " +
......@@ -668,7 +668,7 @@ var directory = {
// ELEMENT DIRECTORY PANEL
// ********************************
elementPanelHtml : function(params){
mylog.log("----------- elementPanelHtml",params.type,params.name);
if(directory.dirLog) mylog.log("----------- elementPanelHtml",params.type,params.name);
str = "";
var grayscale = ( ( notNull(params.isInviting) && params.isInviting == true) ? "grayscale" : "" ) ;
var tipIsInviting = ( ( notNull(params.isInviting) && params.isInviting == true) ? trad["Wait for confirmation"] : "" ) ;
......@@ -764,11 +764,11 @@ var directory = {
prevIx = (found == 0) ? l-1 : found-1;
p = $( $('.searchEntityContainer .container-img-profil' )[ prevIx ] ).attr('href');
pid = url.map(p).id;
pid = urlCtrl.map(p).id;
nextIx = (found == l-1) ? 0 : found+1;
n = $( $('.searchEntityContainer .container-img-profil' )[nextIx] ).attr('href');
nid = url.map(n).id;
nid = urlCtrl.map(n).id;
console.log("next",n,nid);
console.log("prev",p,pid);
......@@ -924,7 +924,7 @@ var directory = {
// CLASSIFIED DIRECTORY PANEL
// ********************************
classifiedPanelHtml : function(params){
mylog.log("----------- classifiedPanelHtml",params,params.name);
if(directory.dirLog) mylog.log("----------- classifiedPanelHtml",params,params.name);
str = "";
str += "<div class='col-lg-6 col-md-12 pull- col-sm-12 col-xs-12 searchEntityContainer "+params.type+params.id+" "+params.type+" "+params.elTagsList+" '>";
......@@ -1018,7 +1018,7 @@ var directory = {
// EVENT DIRECTORY PANEL
// ********************************
eventPanelHtml : function(params){
mylog.log("-----------eventPanelHtml", params);
if(directory.dirLog) mylog.log("-----------eventPanelHtml", params);
str = "";
str += "<div class='col-xs-12 searchEntityContainer "+params.type+" "+params.elTagsList+" '>";
str += "<div class='searchEntity'>";
......@@ -1079,8 +1079,6 @@ var directory = {
"</small>";
mylog.log("-----------eventPanelHtml", params);
//if(params.imgProfil.indexOf("fa-2x")<0)
str += '<div class="col-xs-12 col-sm-4 col-md-4 no-padding">'+
'<a href="'+params.url+'" class="container-img-profil lbh add2fav">'+params.imgProfil+'</a>'+
......@@ -1164,7 +1162,7 @@ var directory = {
// CITY DIRECTORY PANEL
// ********************************
cityPanelHtml : function(params){
mylog.log("-----------cityPanelHtml");
if(directory.dirLog) mylog.log("-----------cityPanelHtml");
str = "";
str += "<div class='col-lg-4 col-md-6 col-sm-6 col-xs-12 margin-bottom-10 searchEntityContainer "+params.type+" "+params.elTagsList+" '>";
str += "<div class='searchEntity'>";
......@@ -1185,7 +1183,6 @@ var directory = {
params.dataId = params.name;
params.fullLocality = "<b>" +params.name + "</b> - " + params.cp+ "<br>" + params.regionName;
mylog.log("-----------cityPanelHtml", params);
var thisLocality = "";
if(params.fullLocality != "" && params.fullLocality != " ")
thisLocality = '<span data-id="' + params.dataId + '"' + " class='margin-bottom-5 entityName letter-red lbh add2fav'>"+
......@@ -1222,7 +1219,7 @@ var directory = {
// URL DIRECTORY PANEL
// ********************************
urlPanelHtml : function(params, key){
mylog.log("-----------urlPanelHtml", params);
if(directory.dirLog) mylog.log("-----------urlPanelHtml", params);
str = "";
str += "<div class='col-lg-4 col-md-6 col-sm-6 col-xs-12 margin-bottom-10'>";
str += "<div class='searchEntity'>";
......@@ -1256,7 +1253,7 @@ var directory = {
// Contact DIRECTORY PANEL
// ********************************
contactPanelHtml : function(params, key){
mylog.log("-----------contactPanelHtml", params);
if(directory.dirLog) mylog.log("-----------contactPanelHtml", params);
str = "";
str += "<div class='col-lg-4 col-md-6 col-sm-6 col-xs-12 margin-bottom-10 '>";
str += "<div class='searchEntity contactPanelHtml'>";
......@@ -1293,7 +1290,7 @@ var directory = {
// ROOMS DIRECTORY PANEL
// ********************************
roomsPanelHtml : function(params){
mylog.log("-----------roomsPanelHtml");
if(directory.dirLog) mylog.log("-----------roomsPanelHtml");
if(params.type == "surveys") params.url = "#survey.entry.id."+params.id;
else if(params.type == "actions") params.url = "#rooms.action.id."+params.id;
......@@ -1430,23 +1427,26 @@ var directory = {
str += "</div>";
return str;
},
dirLog : false,
showResultsDirectoryHtml : function ( data, contentType, size){ //size == null || min || max
mylog.log("START -----------showResultsDirectoryHtml :" ,data, size, contentType)
mylog.log("START -----------showResultsDirectoryHtml :"