Issue #1704 New album edition page

* Front end development according to the mockup
* Save changes in ajax
* Implement the delete album behaviour with Jconfirm in ajax
* Adding a new Css component : infos (factorized in the tag page)
* Add a new general admin template variable : ADMIN_PAGE_OBJECT_ID (adding the id of an object on the page)
* Modify the pwg.categories.setInfo api method to fit the need of the album edition pages
* Slightly change the method time_since, add a parameter to display only the greates time unit
* Popin to change parent album, and changed it as a re-usable component
* Dropdown to replace the checkbox for comments
This commit is contained in:
Matthieu Leproux
2023-01-02 16:18:34 +01:00
parent 0d70ce6a64
commit f4a4473f37
19 changed files with 1305 additions and 751 deletions
+11 -2
View File
@@ -847,10 +847,19 @@ function ws_addDefaultMethods( $arr )
'ws_categories_setInfo',
array(
'category_id' => array('type'=>WS_TYPE_ID),
'name' => array('default'=>null),
'comment' => array('default'=>null),
'name' => array('default'=>null,
'flags'=>WS_PARAM_OPTIONAL,),
'comment' => array('default'=>null,
'flags'=>WS_PARAM_OPTIONAL,),
'status' => array('default'=>null,
'flags'=>WS_PARAM_OPTIONAL,
'info'=>'public, private'),
'commentable' => array('default'=>true,
'flags'=>WS_PARAM_OPTIONAL,
'info'=>'Boolean, effective if configuration variable activate_comments is set to true'),
'apply_commentable_to_subalbums' => array('default'=>false,
'flags'=>WS_PARAM_OPTIONAL,
'info'=>'If true, set commentable to all sub album'),
),
'Changes properties of an album.',
$ws_functions_root . 'pwg.categories.php',