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
bc793650
Commit
bc793650
authored
Sep 16, 2016
by
c24b
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Editor BAR
parent
e9df1d89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
12 deletions
+31
-12
garganrest_projects.js
static/lib/gargantext/garganrest_projects.js
+17
-0
overview.html
templates/pages/projects/overview.html
+14
-12
No files found.
static/lib/gargantext/garganrest_projects.js
View file @
bc793650
...
...
@@ -99,6 +99,7 @@ function addPageStatus(status, msg){
}
function
selectedUrls
(){
var
selected
=
[];
$
(
'input:checked'
).
each
(
function
()
{
selected
.
push
(
$
(
this
).
val
());
...
...
@@ -285,6 +286,22 @@ $(document).on("hover", "button", function(){
});
//MULTIPLE SELECTION ACTION
// checkbox with BUTTON #delete, #edit #refresh
//Activate editor bar
$
(
document
).
on
(
'change'
,
'input[type=checkbox]'
,
function
()
{
if
(
$
(
"input:checkbox:checked"
).
length
>
0
){
if
(
!
$
(
"#editor"
).
hasClass
(
"collapse in"
)){
$
(
"#editor"
).
collapse
(
"show"
);
}
}
else
{
if
(
$
(
"#editor"
).
hasClass
(
"collapse in"
)){
$
(
"#editor"
).
collapse
(
"hide"
);
}
}});
//DELETE MULTI
$
(
document
).
on
(
"click"
,
"#delete"
,
function
(){
var
selected
=
selectedUrls
();
...
...
templates/pages/projects/overview.html
View file @
bc793650
...
...
@@ -74,7 +74,7 @@
</div>
<!-- CHECKBOX EDITION -->
<div
class=
"row"
id=
"editor"
>
<div
class=
"row
collapse
"
id=
"editor"
>
<button
title=
"delete selected project"
type=
"button"
class=
"btn btn-danger"
id=
"delete"
>
<span
class=
"glyphicon glyphicon-trash "
aria-hidden=
"true"
></span>
</button>
...
...
@@ -104,7 +104,7 @@
<
div
id
=
"{url}"
class
=
"item row"
>
<
h3
>
<
div
class
=
"col-md-6 content"
>
<
input
id
=
"checkbox"
type
=
"checkbox"
value
=
"{url}"
data
-
id
=
"{id}"
>
<
input
type
=
"checkbox"
value
=
"{url}"
data
-
id
=
"{id}"
>
<
a
href
=
"{url}"
>
<
span
class
=
"glyphicon glyphicon-book"
aria
-
hidden
=
"true"
><
/span
>
<
span
class
=
"item_name"
>
{
name
}
<
/span
>
...
...
@@ -113,28 +113,30 @@
<
/h3
>
<
div
id
=
"project_detail"
class
=
"col-md-4 content"
>
<
div
id
=
"item-editor"
>
<!--
GET
Project
-->
<
a
href
=
"{url}"
>
<
button
type
=
"button"
title
=
"see project"
class
=
"btn btn-default show pull-right"
aria
-
label
=
"Left Align"
>
<
span
class
=
"glyphicon glyphicon-eye-open"
aria
-
hidden
=
"true"
><
/span
>
<
/button
>
<
/a
>
<!--
DELETE
PROJECT
-->
<
button
type
=
"button"
class
=
"btn btn-default delete pull-right"
data
-
url
=
"{url}"
>
<
span
class
=
"glyphicon glyphicon-trash pull-right"
aria
-
hidden
=
"true"
><
/span
>
<
/button
>
<!--
EDIT
PROJECT
-->
<
button
class
=
"btn btn-default edit pull-right"
data
-
id
=
"{id}"
data
-
url
=
"{url}"
data
-
toggle
=
"collapse"
>
<
span
class
=
"glyphicon glyphicon-pencil"
aria
-
hidden
=
"true"
><
/span
>
<
/button
>
<!--
DELETE
PROJECT
-->
<
button
type
=
"button"
class
=
"btn btn-default delete pull-right"
data
-
url
=
"{url}"
>
<
span
class
=
"glyphicon glyphicon-trash pull-right"
aria
-
hidden
=
"true"
><
/span
>
<
/button
>
<!--
REFRESH
PROJECT
-->
<!--
<
button
type
=
"button"
class
=
"btn btn-default refresh pull-right"
data
-
id
=
"{id}"
>
<
span
class
=
"glyphicon glyphicon-refresh pull-right"
aria
-
hidden
=
"true"
><
/span
>
<
/button
>
-->
<!--
GET
Project
-->
<
a
href
=
"{url}"
>
<
button
type
=
"button"
title
=
"see project"
class
=
"btn btn-default show pull-right"
aria
-
label
=
"Left Align"
>
<
span
class
=
"glyphicon glyphicon-eye-open"
aria
-
hidden
=
"true"
><
/span
>
<
/button
>
<
/a
>
<
/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