files: make mod/filestorage.php load via ajax and some design work. work in progress...

This commit is contained in:
marijus
2014-12-21 20:11:30 +01:00
parent 0c98cacbcf
commit 27d786c979
8 changed files with 57 additions and 63 deletions

View File

@@ -208,6 +208,7 @@
var pageHasMoreContent = true;
var updateCountsOnly = false;
var divmore_height = 400;
var last_filestorage_id = null;
$(function() {
$.ajaxSetup({cache: false});
@@ -842,6 +843,17 @@ function updateConvItems(mode,data) {
});
}
function filestorage(event,nick,id) {
$('#perms-panel-' + last_filestorage_id).html('');
$('#file-edit-' + id).spin('tiny');
delete acl;
$.get('filestorage/' + nick + '/' + id + '/edit', function(data) {
$('#perms-panel-' + id).html(data);
$('#file-edit-' + id).spin(false);
last_filestorage_id = id;
});
}
function post_comment(id) {
unpause();
commentBusy = true;

View File

@@ -13,4 +13,5 @@ $(document).ready(function() {
}
}).trigger('change');
});