diff options
author | Kate Arzamastseva <pshns@ukr.net> | 2011-07-03 19:00:54 +0300 |
---|---|---|
committer | Kate Arzamastseva <pshns@ukr.net> | 2011-07-03 19:00:54 +0300 |
commit | 23846a98488bec2aaade6d983b4c0b0db13af80c (patch) | |
tree | 9ceb4baa307ef92be262f033e6723f5df37d8ea9 /lib/exe/ajax.php | |
parent | 9c1bd4bc9aa4b9ac3b9981543a14508091cd639a (diff) | |
download | rpg-23846a98488bec2aaade6d983b4c0b0db13af80c.tar.gz rpg-23846a98488bec2aaade6d983b4c0b0db13af80c.tar.bz2 |
ajax mediamanager
Diffstat (limited to 'lib/exe/ajax.php')
-rw-r--r-- | lib/exe/ajax.php | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php index 1056a05f8..16efd9ac7 100644 --- a/lib/exe/ajax.php +++ b/lib/exe/ajax.php @@ -210,7 +210,30 @@ function ajax_medialist(){ global $NS; $NS = $_POST['ns']; - tpl_mediaContent(true); + if ($_POST['do'] == 'media') { + tpl_fileList(true); + } else { + tpl_mediaContent(true); + } +} + +/** + * Return the content of the right column + * (image details) for the Mediamanager + * + * @author Kate Arzamastseva <pshns@ukr.net> + */ +function ajax_mediadetails(){ + global $conf; + global $NS; + + $NS = $_POST['ns']; + $image = $_POST['image']; + if (isset($_POST['full'])) { + tpl_fileDetails($image, false); + } else { + tpl_fileDetails($image, false, true); + } } /** |