Commit 20c4d73b authored by c24b's avatar c24b

M

parent 09a6a976
......@@ -194,7 +194,7 @@ function getCorpora(){
function getRessources(){
var pathname = window.location.pathname;
url_ = "/api"+pathname+"/resources"
alert(url_)
//alert(url_)
}
//// POST TO API
......@@ -361,7 +361,7 @@ $(document).on("click",".edit", function(){
//UNIQUE RECALC
$(document).on("click",".refresh", function(){
alert(refresh)
//alert(refresh)
//console.log( $(this))
var id = $(this).data("id")
//var url = $( this ).data("url")
......@@ -376,7 +376,7 @@ function createProject() {
//onclick inside element because probleme of scope with modal
//we recover the element by hand for the moment
var project_name = $(".popover #inputName").val();
alert(project_name);
//alert(project_name);
console.log("Create project #"+project_name);
console.log("POST /api/projects");
$.ajax({
......@@ -393,7 +393,7 @@ function createProject() {
location.reload();
},
error: function(data) {
alert(data)
//alert(data)
console.log(data)
status = data.status;
info = data.responseJSON["detail"];
......@@ -404,8 +404,8 @@ function createProject() {
};
function createCorpus(url, method, form){
alert(method)
alert(url)
//alert(method)
//alert(url)
console.log(form)
console.log("POST corpus")
$.ajax({
......@@ -438,7 +438,7 @@ function createCorpus(url, method, form){
status = data.status;
info = data.responseJSON["detail"];
msg = "<strong>ERROR ["+status+"]:</strong>"+ "<p>"+info+"</p>"
alert(msg)
//alert(msg)
addFormStatus("error","form#formCorpus", msg);
//$(".collapse").collapse("hide");
//_content = '<h2><span class="glyphicon glyphicon-remove-circle" aria-hidden="true"></span>Error while creating the corpus.</h2>'
......
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