Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
e9df1d89
Commit
e9df1d89
authored
Sep 16, 2016
by
c24b
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
M
parent
c0a3d455
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
garganrest_projects.js
static/lib/gargantext/garganrest_projects.js
+7
-7
No files found.
static/lib/gargantext/garganrest_projects.js
View file @
e9df1d89
...
...
@@ -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>'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment