Commit 080fbf4c authored by Tibor Katelbach's avatar Tibor Katelbach

tweaks

parent 5f7b71a5
......@@ -679,10 +679,10 @@ function initPageTable(number){
if(coopSection == "amendments" ){
afterLoad = function() {
uiCoop.showAmendement(true);
if($("#form-amendement").hasClass("hidden"))
/*if($("#form-amendement").hasClass("hidden"))
$("#form-amendement").removeClass("hidden");
else
$("#form-amendement").addClass("hidden");
$("#form-amendement").addClass("hidden");*/
};
} else if(coopSection == "vote" ){
mylog.log(".openCoopPanelHtml vote");
......@@ -2692,7 +2692,7 @@ var directory = {
str += '<a href="javascript:" data-toggle="modal" data-target="#modalLogin" class="btn-menu-connect bg-green btn col-sm-'+btnSize+' "><i class="fa fa-gavel"></i> '+trad.Vote+'</a>';
}
if( params.status == "amendementAndVote" || params.status =="amendable" ){
if( (params.status == "amendementAndVote" || params.status =="amendable") && params.amendements){
amendCount = (params.amendements) ? " ("+Object.keys(params.amendements).length+")": "";
str += '<a href="javascript:;" '+ linkParams + ' data-coop-section="amendments" class="openCoopPanelHtml btn btn-default text-purple col-sm-6 "><i class="fa fa-list"></i> '+trad.Amendements+amendCount+'</a>';
}
......
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