Commit 9be94055 authored by Raph El's avatar Raph El
Browse files

Modif admin

parent 157f4fb8
......@@ -444,28 +444,40 @@ var adminDirectory = {
},
name : function(e, id, type, aObj, params){
mylog.log("adminDirectory.values.name", e, id, type);
var title;
if(typeof e.name != "undefined")
title=e.name;
else if(typeof e.text != "undefined")
title=e.text;
else if(typeof e.title != "undefined")
title=e.title;
//var lbhN = "lbh" ;
var lbhN = "" ;
var urlH='#page.type.'+type+'.id.'+id;
var targetLink="target='_blank'";
if(typeof params.preview !="undefined" && params.preview){
targetLink="";
lbhN = "lbh-preview-element";
}
if(typeof params.notLink !="undefined" && params.notLink){
lbhN="";
urlH="javascript:;";
var str = "";
if(type == "answers"){
var title="Réponse vide";
if(typeof e.mappingValues != "undefined" && typeof e.mappingValues.name != "undefined" && typeof e.mappingValues.name != null)
title=e.mappingValues.name;
mylog.log("adminDirectory.values.name e.mappingValues",e.mappingValues);
str = '<a href="#answer.index.id.'+id+'" class="" target="_blank">'+title+'</a>';
} else if (type == "forms"){
str = '<a href="#form.edit.id.'+id+'" class="" target="_blank">'+e.name+'</a>';
} else {
var title;
if(typeof e.name != "undefined")
title=e.name;
else if(typeof e.text != "undefined")
title=e.text;
else if(typeof e.title != "undefined")
title=e.title;
//var lbhN = "lbh" ;
var lbhN = "" ;
var urlH='#page.type.'+type+'.id.'+id;
var targetLink="target='_blank'";
if(typeof params.preview !="undefined" && params.preview){
targetLink="";
lbhN = "lbh-preview-element";
}
if(typeof params.notLink !="undefined" && params.notLink){
lbhN="";
urlH="javascript:;";
}
str = '<a href="'+urlH+'" class="'+lbhN+'" '+targetLink+'>'+title+'</a>';
}
var str = '<a href="'+urlH+'" class="'+lbhN+'" '+targetLink+'>'+title+'</a>';
return str;
},
category : function(e, id, type, aObj){
......@@ -515,7 +527,10 @@ var adminDirectory = {
},
email : function(e, id, type, aObj){
mylog.log("adminDirectory.values.email", e, id, type);
var str = ( ( typeof e.email != "undefined" ) ? e.email : "" );
if(typeof e.mappingValues != "undefined" && typeof e.mappingValues.email != "undefined" && typeof e.mappingValues.email != null)
var str=e.mappingValues.email;
else
var str = ( ( typeof e.email != "undefined" ) ? e.email : "" );
return str;
},
pdf : function(e, id, type, aObj){
......
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