Commit 3b1d3b40 authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

tweaks

parent e9f8915d
......@@ -1698,11 +1698,15 @@ var smallMenu = {
}else if(type == "bootbox"){
bb = bootbox.dialog({
message: content
})
});
if(color == "black")
bb.css({'background-color': '#000', 'opacity' : '0.8'} );
bb.on('shown.bs.modal', function (e) {
if (typeof callback == "function")
callback();
})
} else{//open inside a boostrap modal
if(!$("#openModal").hasClass('in'))
if($("#openModal").hasClass('in'))
$("#openModal").modal("show");
if(content)
smallMenu.content(content);
......
......@@ -15,6 +15,14 @@ co2/datamigration/BashforeachActiveTags
///////////////////////// END BASH ////////////////////////////////////////////////
///////////////// BASH VERSION 0.994 - 21/04/2020 //////////////////////////////////
db.getCollection('answers').update({parentSlug:"sommom"},{ $set: {form:"5e9962ef539f225f158b4577"}},{multi:true})
///////////////////////// END BASH ////////////////////////////////////////////////
///////////////// BASH VERSION 0.993 - 18/12/2019 //////////////////////////////////
** BASH sur les groupes du pactes supression des doublons
=> co2/datamigration/RemoveGroupDoublon
......
......@@ -27,12 +27,16 @@
else
$params["canEdit"] = Authorisation::canEditItem(Yii::app()->session["userId"],@$this->costum["contextType"], @$this->costum["contextId"]);
if(isset($_GET["form"]))
if(isset($_GET["form"])){
$params = Form::getDataForm($params);
if(!isset($params["mode"]))
$params["mode"] = "r";
}
// echo "<script>alert('welcome')</script>";
//var_dump($params['parentForm']);exit;
// var_dump($this->costum["welcomeTpl"]);
// var_dump($params);
// var_dump($params);
// exit;
$this->renderPartial( $this->costum["welcomeTpl"],$params );
}
......
......@@ -26,14 +26,14 @@
$params["canEdit"] = $canEdit;
else
$params["canEdit"] = Authorisation::canEditItem(Yii::app()->session["userId"],@$this->costum["contextType"], @$this->costum["contextId"]);
//echo "<script>alert('welcomeAjax')</script>";
if( isset($test) ){
$params["tpl"]=$id;
$params["test"]=$test;
}
if(isset($_GET["form"]))
$params = Form::getDataForm($params);
//var_dump($params['parentForm']);exit;
//var_dump($params);exit;
$this->renderPartial( $this->costum["welcomeTpl"],$params );
}
else if( @$_GET["city"] || @$this->costum['id'] )
......
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