Commit 92daf525 authored by Tibor Katelbach's avatar Tibor Katelbach

plein de petite customisation

parent c990419b
......@@ -202,17 +202,10 @@ dynForm = {
// $("#ajaxFormModal #amendementAndVote").val("false");
// $("#ajaxFormModal .amendementAndVotecheckboxSimple .btn-dyn-checkbox[data-checkval='false']").trigger( "click" );
//$("#ajaxFormModal .amendementDateEnddatetime").show();
if(typeof custom != "undefined"){
if(typeof custom.dynForm != "undefined"){
if(typeof custom.dynForm.proposal != "undefined" && typeof custom.dynForm.proposal.onload != "undefined" && typeof custom.dynForm.proposal.onload.actions != "undefined"){
$.each(custom.dynForm.proposal.onload.actions,function(i,f) {
if(typeof dyFObj.elementObj.dynForm.jsonSchema.actions[f] == "function")
dyFObj.elementObj.dynForm.jsonSchema.actions[f]();
})
}
}
}
if( typeof custom != "undefined" &&
typeof custom.dynForm != "undefined" &&
typeof custom.dynForm.proposal != "undefined" )
dyFCustom.init( "proposal" );
}
},
beforeBuild : function(){
......@@ -262,29 +255,8 @@ dynForm = {
$(".scopescope").hide();
},
adminOnly : function() {
if( typeof custom != "undefined"
&& typeof custom.admins != "undefined"
&& typeof custom.admins[userId] != "undefined"
&& typeof custom.admins[userId].isAdmin != "undefined"
&& custom.admins[userId].isAdmin == true ){
if(typeof custom.dynForm != "undefined"){
if(typeof custom.dynForm.proposal != "undefined"
&& typeof custom.dynForm.proposal.adminOnly != "undefined" ){
$.each(custom.dynForm.proposal.adminOnly,function(i,p) {
$("."+p).show();
});
}
}
}
},
setTitle : function() {
$("#ajax-modal-modal-title").html(tradDynForm.addMeasure);
},
rename : function() {
$.each(custom.dynForm.proposal.onload.rename,function(k,v) {
$("."+k).html(v)
});
}
},
afterSave : function(data){
......
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