first commit for v0.2
This commit is contained in:
parent
6ba03afc73
commit
1463854a45
143 changed files with 20775 additions and 2764 deletions
13
permissions/static/js/perm.js
Normal file
13
permissions/static/js/perm.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
$('.perm-toggle').click(function() {
|
||||
var a = $(this);
|
||||
a.html('<span class="glyphicon glyphicon-time"></span>');
|
||||
var href = a.data('href');
|
||||
$.ajax(href)
|
||||
.done(function(data, textStatus) {
|
||||
if (data == '1') {
|
||||
a.html('<span class="glyphicon glyphicon-ok"></span>');
|
||||
} else {
|
||||
a.html('<span class="glyphicon glyphicon-remove"></span>');
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue