diff options
author | marijus <mario@mariovavti.com> | 2014-12-21 20:11:30 +0100 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2014-12-21 20:11:30 +0100 |
commit | 27d786c979a07eddaa31a9f8fe291360b586b9cf (patch) | |
tree | 7dc3a497fc0712a00bce23f1932c6f682313f664 /view/js/main.js | |
parent | 0c98cacbcf0c27aba6bea62b4bf3dc00c91b3962 (diff) | |
download | volse-hubzilla-27d786c979a07eddaa31a9f8fe291360b586b9cf.tar.gz volse-hubzilla-27d786c979a07eddaa31a9f8fe291360b586b9cf.tar.bz2 volse-hubzilla-27d786c979a07eddaa31a9f8fe291360b586b9cf.zip |
files: make mod/filestorage.php load via ajax and some design work. work in progress...
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js index a851e7e63..f49cea78c 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -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; |