Commit 79b8a9e3 authored by Raph El's avatar Raph El

Hotfix modaration admin

parent a3356772
......@@ -40,7 +40,7 @@ class AdminController extends CommunecterController {
'adddataindb' => 'citizenToolKit.controllers.admin.AddDataInDbAction',
'createfileforimport' => 'citizenToolKit.controllers.admin.CreateFileForImportAction',
'sourceadmin' => 'citizenToolKit.controllers.admin.SourceAdminAction',
'moderate' => 'citizenToolKit.controllers.admin.ModerateActiona',
'moderate' => 'citizenToolKit.controllers.admin.ModerateAction',
'checkcities' => 'citizenToolKit.controllers.admin.CheckCitiesAction',
'checkcedex' => 'citizenToolKit.controllers.admin.CheckCedexAction',
'downloadfile' => 'citizenToolKit.controllers.admin.DownloadFileAction',
......
......@@ -37,7 +37,7 @@
var newsId = "";
var htmlSpiner = '<h2 class="homestead text-dark padding-10"><i class="fa fa-spin fa-circle-o-notch"></i></h2>';
function loadNewsToModerate(idNews){
var urlToSend = baseUrl+'/'+moduleId+"/news/detail/id/"+idNews;
var urlToSend = baseUrl+"/co2/app/page/type/news/id/"+idNews;
mylog.log(urlToSend);
getAjax('.toModerateContent',urlToSend,function(handleResponse){
......@@ -58,7 +58,7 @@
mylog.log("setNextNewsId");
$('.toModerateContent').html(htmlSpiner);
$('.buttonBar').hide();
var urlToSend = baseUrl+"/news/moderate/";
var urlToSend = baseUrl+"/news/co/moderate/";
var params = {};
params.subAction = "getNextIdToModerate";
......@@ -97,7 +97,7 @@
mylog.log("isAnAbuse",$(this).data("value"));
var btnClick = $(this);
var id = $(this).data("id");
var urlToSend = baseUrl+"/"+moduleId+"/news/moderate/";
var urlToSend = baseUrl+"/news/co/moderate/";
var params = {};
params.subAction = "saveModerate";
......
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