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
4beaddae
Commit
4beaddae
authored
Jun 08, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ngrams table: save button also on top + save action also saves any current group modification
parent
663224e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
NGrams_dyna_chart_and_table.js
static/lib/gargantext/NGrams_dyna_chart_and_table.js
+11
-2
terms.html
templates/pages/corpora/terms.html
+7
-4
No files found.
static/lib/gargantext/NGrams_dyna_chart_and_table.js
View file @
4beaddae
...
@@ -597,11 +597,11 @@ function drawActiveGroup (tgtElementId, mainformId, linkIdsArray, ngInfos, newFr
...
@@ -597,11 +597,11 @@ function drawActiveGroup (tgtElementId, mainformId, linkIdsArray, ngInfos, newFr
groupHtml
+=
'
\
n <p id="activeGroupButtons">'
;
groupHtml
+=
'
\
n <p id="activeGroupButtons">'
;
// Ok - No
// Ok - No
var
cancelGroupButton
=
'<button onclick="removeActiveGroupFrameAndUpdate()">'
;
var
cancelGroupButton
=
'<button
class="btn btn-default"
onclick="removeActiveGroupFrameAndUpdate()">'
;
cancelGroupButton
+=
'cancel'
;
cancelGroupButton
+=
'cancel'
;
cancelGroupButton
+=
'</button>'
;
cancelGroupButton
+=
'</button>'
;
var
tempoSaveGroupButton
=
'<button onclick="saveActiveGroup()">'
;
var
tempoSaveGroupButton
=
'<button
class="btn btn-warning"
onclick="saveActiveGroup()">'
;
tempoSaveGroupButton
+=
'finish'
;
tempoSaveGroupButton
+=
'finish'
;
tempoSaveGroupButton
+=
'</button>'
;
tempoSaveGroupButton
+=
'</button>'
;
...
@@ -1391,6 +1391,9 @@ $("#Clean_All").click(function(){
...
@@ -1391,6 +1391,9 @@ $("#Clean_All").click(function(){
$
(
"#Save_All"
).
click
(
function
(){
$
(
"#Save_All"
).
click
(
function
(){
SaveLocalChanges
()
SaveLocalChanges
()
});
});
$
(
"#Save_All_Bottom"
).
click
(
function
(){
SaveLocalChanges
()
});
// find all the consequences of changes from MAP => MAIN
// find all the consequences of changes from MAP => MAIN
...
@@ -1476,6 +1479,12 @@ function InferCRUDFlags(id, oldState, desiredState, registry) {
...
@@ -1476,6 +1479,12 @@ function InferCRUDFlags(id, oldState, desiredState, registry) {
// Save changes to all corpusA-lists
// Save changes to all corpusA-lists
function
SaveLocalChanges
()
{
function
SaveLocalChanges
()
{
// if there is an activeGroup modification, also finish it and save it
if
(
GState
==
1
)
{
saveActiveGroup
()
}
// console.clear()
// console.clear()
// console.log("In SaveLocalChanges()")
// console.log("In SaveLocalChanges()")
...
...
templates/pages/corpora/terms.html
View file @
4beaddae
...
@@ -64,9 +64,12 @@
...
@@ -64,9 +64,12 @@
</button> -->
</button> -->
</center>
</center>
</h2>
</h2>
<div
class=
"pull-right"
style=
"margin-top:1.7em;padding-left:2em;"
>
<!-- save button -->
<button
id=
"Save_All"
class=
"btn btn-primary"
>
Save all changes permanently
</button>
</div>
<!-- see in javascript function queries.functions['my_state_filter'] -->
<!-- see in javascript function queries.functions['my_state_filter'] -->
<div
class=
"pull-left"
style=
"margin-top:
1.85
em;"
>
<div
class=
"pull-left"
style=
"margin-top:
2.1
em;"
>
Filter:
Filter:
<select
id=
"picklistmenu"
name=
"my_state_filter"
>
<select
id=
"picklistmenu"
name=
"my_state_filter"
>
<option
value=
'reset'
>
All terms
</option>
<option
value=
'reset'
>
All terms
</option>
...
@@ -85,9 +88,9 @@
...
@@ -85,9 +88,9 @@
<!-- (table id="my-ajax-table") dynamically set by Ngrams_dyna_chart_and_table -->
<!-- (table id="my-ajax-table") dynamically set by Ngrams_dyna_chart_and_table -->
</div>
</div>
<!-- under the table -->
<!--
copy of save button
under the table -->
<p
align=
"right"
>
<p
align=
"right"
>
<button
id=
"Save_All
"
class=
"btn btn-primary"
>
Save
changes permanently
</button>
<button
id=
"Save_All
_Bottom"
class=
"btn btn-primary"
>
Save all
changes permanently
</button>
</p>
</p>
</div>
</div>
...
...
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