Commit ae923ea1 authored by ramiandrison gova's avatar ramiandrison gova

update

parent 5c0a7105
......@@ -70,6 +70,7 @@ dynForm = {
afterSave : function(data,callB){
//alert("in save orga");
dyFObj.commonAfterSave(data, callB);
// toastr.success(trad.waitingValidation);
/*if( $(uploadObj.domTarget).fineUploader('getUploads').length > 0 ){
$(uploadObj.domTarget).fineUploader('uploadStoredFiles');
//principalement pour les surveys
......
......@@ -258,8 +258,9 @@ HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesModule, $this->module->
});
selectedIds=[];
toastr.success(data.msg);
location.reload();
}else{
toastr.error(data.error)
toastr.error(data.error);
}
}
);
......@@ -267,4 +268,21 @@ HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesModule, $this->module->
});
});
}
</script>
<script>
$(document).ready(function(){
hashchange();
function hashchange(){
var arrayHash = (window.location.hash).split(".");
$('.btn-add-folder').show();
if ((arrayHash[arrayHash.length-1] == "gallery" && arrayHash[arrayHash.length-2] == "view") ||
(arrayHash[arrayHash.length-1] == "slider" && arrayHash[arrayHash.length-2] == "key"))
$('.btn-add-folder').hide();
}
jQuery(window).on('hashchange', function(){
hashchange();
});
})
</script>
\ No newline at end of file
......@@ -2,7 +2,6 @@
var trad = {
"This data is not geolocated" : "<?php echo Yii::t("common", "This data is not geolocated") ?>",
"badge" : "<?php echo Yii::t("common", "Badge") ?>",
"badges" : "<?php echo Yii::t("common", "Badges") ?>",
"areyousuretodelete" : "<?php echo Yii::t("common", "Are you sure you want to delete") ?>",
......@@ -238,6 +237,7 @@ var trad = {
"testing" : "<?php echo Yii::t("project","testing")?>",
"concept" : "<?php echo Yii::t("project","concept")?>",
"mature" : "<?php echo Yii::t("project","mature")?>",
"abandoned" : "<?php echo Yii::t("project","abandoned")?>",
"notSpecified" : "<?php echo Yii::t("common","Not specified") ?>",
"UnknownLocality" : "<?php echo Yii::t("common","Unknown Locality") ?>",
......@@ -1297,6 +1297,15 @@ var tradCategory = {
"medicalstuff":"<?php echo Yii::t("category","Medical stuff") ?>",
"cibleDD":"<?php echo Yii::t("category","Dévelopement durable") ?>",
"domainAction":"<?php echo Yii::t("category","Domaine d'action") ?>",
<!-- avancement project -->
"idea" : "<?php echo Yii::t("project","idea")?>",
"started" : "<?php echo Yii::t("project","started")?>",
"development" : "<?php echo Yii::t("project","development")?>",
"testing" : "<?php echo Yii::t("project","testing")?>",
"concept" : "<?php echo Yii::t("project","concept")?>",
"mature" : "<?php echo Yii::t("project","mature")?>",
"abandoned" : "<?php echo Yii::t("project","abandoned")?>",
"Not specified" : "<?php echo Yii::t("common","Not specified") ?>"
};
......@@ -1330,7 +1339,8 @@ var tradTags = {
"computer" : "<?php echo Yii::t("tags","computer") ?>",
"web" : "<?php echo Yii::t("tags","web") ?>",
"internet" : "<?php echo Yii::t("tags","ict"),Yii::t("tags","internet") ?>",
"sport" : "<?php echo Yii::t("tags","sport") ?>"
"sport" : "<?php echo Yii::t("tags","sport") ?>",
"economy":"<?php echo Yii::t("category","Economy") ?>"
};
var tradSettings = {
"notificationsSettingsSuccess" : "<?php echo Yii::t("settings","Notifications settings well updated") ?>",
......
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