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
bde81e96
Commit
bde81e96
authored
Dec 16, 2021
by
Manggar Mahardhika
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.khansia.co.id/Nahrowi/oku-gis
parents
3297a3ee
dce3bacb
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 @
bde81e96
...
@@ -453,7 +453,7 @@ def load_group_edit(request):
...
@@ -453,7 +453,7 @@ def load_group_edit(request):
with
conn
.
cursor
()
as
cursor
:
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
+
""
)
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
()
result
=
cursor
.
fetchall
()
resgroup
=
[]
resgroup
=
[]
# if result[0][2] != None:
# if result[0][2] != None:
...
...
static/js/action.js
View file @
bde81e96
...
@@ -831,6 +831,10 @@ function loadgroupbyid(id) {
...
@@ -831,6 +831,10 @@ function loadgroupbyid(id) {
let
response
=
data
;
let
response
=
data
;
if
(
response
.
code
==
0
)
{
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
;
var
grup
=
response
.
data
;
$
(
"
#ingroup
"
).
val
(
grup
.
name
);
$
(
"
#ingroup
"
).
val
(
grup
.
name
);
...
@@ -1432,6 +1436,8 @@ $("#saveuser").on("click", function() {
...
@@ -1432,6 +1436,8 @@ $("#saveuser").on("click", function() {
});
});
})
})
$
(
"
#savegroup
"
).
on
(
"
click
"
,
function
()
{
$
(
"
#savegroup
"
).
on
(
"
click
"
,
function
()
{
var
all_perm
=
[]
var
all_perm
=
[]
$
.
each
(
$
(
"
input[name='chekbox']:checked
"
),
function
()
{
$
.
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