Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OKU-GIS
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhamad
OKU-GIS
Commits
dce3bacb
Commit
dce3bacb
authored
Dec 15, 2021
by
Muhamad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
editing
parent
7e1d75b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
myauth/views.py
myauth/views.py
+1
-1
static/js/action.js
static/js/action.js
+6
-0
No files found.
myauth/views.py
View file @
dce3bacb
...
...
@@ -453,7 +453,7 @@ def load_group_edit(request):
with
conn
.
cursor
()
as
cursor
:
cursor
.
execute
(
"SELECT a.id, a.name, b.name from auth_group a left join auth_group b on b.id = a.have_parent where a.id = "
+
idgroup
+
""
)
result
=
cursor
.
fetchall
()
resgroup
=
[]
# if result[0][2] != None:
...
...
static/js/action.js
View file @
dce3bacb
...
...
@@ -831,6 +831,10 @@ function loadgroupbyid(id) {
let
response
=
data
;
if
(
response
.
code
==
0
)
{
for
(
i
in
list_perm
)
{
console
.
log
()
$
(
"
input[name='chekbox'][value=
"
+
list_perm
[
i
]
+
"
]
"
).
prop
(
'
checked
'
,
'
checked
'
)
}
var
grup
=
response
.
data
;
$
(
"
#ingroup
"
).
val
(
grup
.
name
);
...
...
@@ -1432,6 +1436,8 @@ $("#saveuser").on("click", function() {
});
})
$
(
"
#savegroup
"
).
on
(
"
click
"
,
function
()
{
var
all_perm
=
[]
$
.
each
(
$
(
"
input[name='chekbox']:checked
"
),
function
()
{
...
...
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