Commit cc7d3c7e authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

cms poi in costums

parent d2589fe5
......@@ -1140,7 +1140,9 @@ var urlCtrl = {
if( typeof urlCtrl.loadableUrls[hash] == "undefined" ||
typeof urlCtrl.loadableUrls[hash].emptyContextData == "undefined" ||
urlCtrl.loadableUrls[hash].emptyContextData == true ){
contextData = null;
//probably used for the add button, if Contextdata null then use userId
//mylog.log("emptyContextData",urlCtrl.loadableUrls[hash],urlCtrl.loadableUrls[hash].emptyContextData,)
//contextData = null;
}
$(".my-main-container").off()
......
......@@ -39,7 +39,8 @@ dynForm = {
afterSave : function(data, callB){
mylog.log("afterSave poi", data, typeof callB);
dyFObj.commonAfterSave(data, callB);
/*listObject=$(uploadObj.domTarget).fineUploader('getUploads');
/*
listObject=$(uploadObj.domTarget).fineUploader('getUploads');
goToUpload=false;
if(listObject.length > 0){
$.each(listObject, function(e,v){
......
......@@ -49,7 +49,7 @@ class AppController extends CommunecterController {
else if($hash=="agenda")
self::actionAgenda();
else
echo $this->renderPartial($hash, $params, true);
echo $this->renderPartial($hash, $params);
}
......@@ -57,7 +57,7 @@ class AppController extends CommunecterController {
CO2Stat::incNbLoad("co2-welcome");
$params = array();
echo $this->renderPartial("welcome", $params, true);
echo $this->renderPartial("welcome", $params);
}
public function actionView($page=null,$url=null){
CO2Stat::incNbLoad("co2-info");
......
......@@ -160,7 +160,7 @@
<?php
if(@Yii::app()->session["costum"] && @Yii::app()->session["costum"]["docTpl"]){
$this->renderPartial(Yii::app()->session["costum"]["docTpl"]);
$this->renderPartial(Yii::app()->session["costum"]["docTpl"],false,true);
} else { ?>
<div id="docs-main-container">
<div id="header-doc" class="shadow2">
......@@ -331,8 +331,10 @@ if(@Yii::app()->session["costum"] && @Yii::app()->session["costum"]["docTpl"]){
</div>
</div>
<script type="text/javascript">
var page="<?php echo @$page ?>";
var dir="<?php echo @$dir ?>";
jQuery(document).ready(function() {
dir=(dir=="") ? mainLanguage : dir;
if(page != "")
......@@ -341,6 +343,7 @@ jQuery(document).ready(function() {
initDocs("welcome", mainLanguage);
$(".link-docs-menu").off().on("click",function(){
alert(".link-docs-menu");
if($(this).hasClass("down-menu")){
$("#menu-left > ul > li > a").removeClass("active").find("i").removeClass("fa-angle-down").addClass("fa-angle-right");
$(".subMenu .link-docs-menu").removeClass("active");
......
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