diff options
author | RedMatrix <info@friendica.com> | 2014-12-22 09:45:33 +1100 |
---|---|---|
committer | RedMatrix <info@friendica.com> | 2014-12-22 09:45:33 +1100 |
commit | c732b72a0dde2c8b4d49e63114c9415f44a8a8d7 (patch) | |
tree | c6fba54256dcd17f9ed24c46766f1475da259641 /view/js | |
parent | ca56123a161e482d545b2e0e0c3d869eb8c4221f (diff) | |
parent | be1891c058ccff08d4cafa2bea061424efc0ef82 (diff) | |
download | volse-hubzilla-c732b72a0dde2c8b4d49e63114c9415f44a8a8d7.tar.gz volse-hubzilla-c732b72a0dde2c8b4d49e63114c9415f44a8a8d7.tar.bz2 volse-hubzilla-c732b72a0dde2c8b4d49e63114c9415f44a8a8d7.zip |
Merge pull request #757 from git-marijus/master
files: make mod/filestorage.php load via ajax and some design work. work...
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/main.js | 12 | ||||
-rw-r--r-- | view/js/mod_filestorage.js | 1 |
2 files changed, 13 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; diff --git a/view/js/mod_filestorage.js b/view/js/mod_filestorage.js index 88c1cf7d8..bee37767f 100644 --- a/view/js/mod_filestorage.js +++ b/view/js/mod_filestorage.js @@ -13,4 +13,5 @@ $(document).ready(function() { } }).trigger('change'); + }); |