Commit 5176dd94 authored by Tibor Katelbach's avatar Tibor Katelbach

tweaks

parent 9c96b8ab
......@@ -142,29 +142,31 @@ if(isset($pageConfig["banner"]) && !empty($pageConfig["banner"])){
<?php if(!empty($element["preferences"]["isOpenData"])){?>
<?php //if( Badge::checkBadgeInListBadges("opendata", $element["badges"]) ){?>
<div class="badgePH pull-left" data-title="OPENDATA">
<a href='javascript:;' class="openConfidentialSettings pull-left tooltips" data-toggle="tooltip" data-placement="left"
title="<?php echo Yii::t("common","Keep data open and usable by all") ?>" style="font-size: 13px; line-height: 30px;">
<?php if($edit){ ?><a href='javascript:;' class="openConfidentialSettings pull-left tooltips" data-toggle="tooltip" data-placement="left"
title="<?php echo Yii::t("common","Keep data open and usable by all") ?>" style="font-size: 13px; line-height: 30px;"><?php } ?>
<span class="fa-stack opendata" style="width:17px">
<i class="fa fa-database main fa-stack-1x" style="font-size: 20px;"></i>
<i class="fa fa-share-alt mainTop fa-stack-1x text-white"
style="text-shadow: 0px 0px 2px rgb(15,15,15);"></i>
</span>
<?php echo Yii::t("common","Open data") ?>
</a>
<?php if($edit) { ?></a><?php } ?>
</div>
<?php //}
} ?>
<?php if (!empty($element["preferences"]["isOpenEdition"])) { ?>
<div class="badgePH pull-left" data-title="OPENEDITION">
<?php if($edit){ ?>
<a href="javascript:;" class="openConfidentialSettings btn-show-activity">
<?php } ?>
<span class="pull-right tooltips" data-toggle="tooltip" data-placement="left"
title="<?php echo Yii::t("common","All users can participate and modify informations") ?>"
style="font-size: 13px; line-height: 30px;">
<i class="fa fa-creative-commons" style="font-size: 17px;"></i>
<?php echo Yii::t("common","Open edition") ?>
</span>
</a>
<?php if($edit){ ?></a><?php } ?>
</div>
<?php } ?>
<?php if ( !empty($element["costum"]) ) { ?>
......@@ -488,7 +490,7 @@ jQuery(document).ready(function() {
$(".openConfidentialSettings").click(function(event){
lazyLoad( parentModuleUrl+"/js/default/settings.js",null, function() {
settings.showPanelConfidentiality(contextData.type,contextId,true);
settings.showPanelConfidentiality(contextData.type,contextData._id.$id,true);
} );
});
});
......
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