aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2015-12-01 12:08:10 +0100
committerplegall <plg@piwigo.org>2015-12-01 12:08:10 +0100
commitbe6afad731b965a75d9fe0b254ea72858a4deec4 (patch)
tree0c061688186e3ab9298cf4e64deabc996b8b27bb /ws.php
parent27389102d1275cdefcaee9c5a4a93297fc797b8c (diff)
fixes #377 use Ajax calls to refresh/delete album thumbnail
Diffstat (limited to '')
-rw-r--r--ws.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/ws.php b/ws.php
index 5e4500120..a3747cfe0 100644
--- a/ws.php
+++ b/ws.php
@@ -570,6 +570,28 @@ function ws_addDefaultMethods( $arr )
$ws_functions_root . 'pwg.categories.php',
array('admin_only'=>true, 'post_only'=>true)
);
+
+ $service->addMethod(
+ 'pwg.categories.deleteRepresentative',
+ 'ws_categories_deleteRepresentative',
+ array(
+ 'category_id' => array('type'=>WS_TYPE_ID),
+ ),
+ 'Deletes the album thumbnail. Only possible if $conf[\'allow_random_representative\']',
+ $ws_functions_root . 'pwg.categories.php',
+ array('admin_only'=>true, 'post_only'=>true)
+ );
+
+ $service->addMethod(
+ 'pwg.categories.refreshRepresentative',
+ 'ws_categories_refreshRepresentative',
+ array(
+ 'category_id' => array('type'=>WS_TYPE_ID),
+ ),
+ 'Find a new album thumbnail.',
+ $ws_functions_root . 'pwg.categories.php',
+ array('admin_only'=>true, 'post_only'=>true)
+ );
$service->addMethod(
'pwg.tags.getAdminList',