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
4168bb33
Commit
4168bb33
authored
Oct 05, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/romain-testing' into testing-merge
parents
48a58dad
cf1dd3a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
26 deletions
+22
-26
list_stop.py
gargantext/util/toolchain/list_stop.py
+4
-5
garganrest_projects.js
static/lib/gargantext/garganrest_projects.js
+18
-21
No files found.
gargantext/util/toolchain/list_stop.py
View file @
4168bb33
...
...
@@ -37,11 +37,10 @@ def is_stop_word(ngram, stop_words=None):
,
"(.*)(différent)(.*)"
,
"(.*)(travers)(.*)"
# academic stamps
,
".*
\b
elsevier
\b
.*"
,
".*
\b
wiley
\b
.*"
,
".*
\b
springer
\b
.*"
,
".*university press
\b
.*"
,
".*
\b
study
\b
.*"
,
".*elsevier.*"
,
".*wiley.*"
,
".*springer.*"
,
".*university press.*"
# academic terms when alone ~~> usually not informative
,
"hypothes[ie]s$"
,
"analys[ie]s$"
...
...
static/lib/gargantext/garganrest_projects.js
View file @
4168bb33
...
...
@@ -204,27 +204,24 @@ function getRessources(){
//// PUT AND PATCH TO API
function
deleteOne
(
url
,
thatButton
){
// we just show wait image before ajax
var
$thatButton
=
$
(
thatButton
)
var
alreadyWaiting
=
$thatButton
.
has
(
$
(
'.wait-img-active'
)).
length
if
(
!
alreadyWaiting
)
{
var
previousButtonContent
=
$thatButton
.
html
()
var
availableWidth
=
$thatButton
.
width
()
var
$myWaitImg
=
$
(
'#wait-img'
).
clone
()
$myWaitImg
.
attr
(
"id"
,
null
)
.
attr
(
"class"
,
"wait-img-active pull-right"
)
.
width
(
availableWidth
)
.
css
(
"display"
,
"block"
)
;
$thatButton
.
append
(
$myWaitImg
)
}
else
{
// uncomment if user should stop clicking ;)
// $thatButton.addClass("btn-danger")
// uncomment to prevent a 2nd ajax
return
false
console
.
warn
(
"thatButton"
,
thatButton
)
if
(
typeof
thatButton
!=
'undefined'
&&
thatButton
.
id
)
{
// we just show wait image before ajax
var
$thatButton
=
$
(
thatButton
)
var
alreadyWaiting
=
$thatButton
.
has
(
$
(
'.wait-img-active'
)).
length
if
(
!
alreadyWaiting
)
{
var
previousButtonContent
=
$thatButton
.
html
()
var
availableWidth
=
$thatButton
.
width
()
var
$myWaitImg
=
$
(
'#wait-img'
).
clone
()
$myWaitImg
.
attr
(
"id"
,
null
)
.
attr
(
"class"
,
"wait-img-active pull-right"
)
.
width
(
availableWidth
)
.
css
(
"display"
,
"block"
)
;
$thatButton
.
append
(
$myWaitImg
)
}
}
// now the real ajax
...
...
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