Commit bde81e96 authored by Manggar Mahardhika's avatar Manggar Mahardhika

Merge branch 'master' of http://git.khansia.co.id/Nahrowi/oku-gis

parents 3297a3ee 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:
......
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment