feature:2237
new trigger to add action on batch manager git-svn-id: http://piwigo.org/svn/trunk@9916 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
008087baee
commit
526074d7d6
2 changed files with 16 additions and 0 deletions
|
|
@ -386,6 +386,8 @@ SELECT id, path
|
|||
l10n('Metadata synchronized from file')
|
||||
);
|
||||
}
|
||||
|
||||
trigger_action('element_set_global_action', $action, $collection);
|
||||
}
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
|
|
|||
|
|
@ -467,6 +467,11 @@ $(document).ready(function() {
|
|||
<option value="remove_from_caddie">{'Remove from caddie'|@translate}</option>
|
||||
{else}
|
||||
<option value="add_to_caddie">{'add to caddie'|@translate}</option>
|
||||
{/if}
|
||||
{if !empty($element_set_global_plugins_actions)}
|
||||
{foreach from=$element_set_global_plugins_actions item=action}
|
||||
<option value="{$action.ID}">{$action.NAME}</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</select>
|
||||
|
||||
|
|
@ -549,6 +554,15 @@ $(document).ready(function() {
|
|||
<div id="action_metadata" class="bulkAction">
|
||||
</div>
|
||||
|
||||
<!-- plugins -->
|
||||
{if !empty($element_set_global_plugins_actions)}
|
||||
{foreach from=$element_set_global_plugins_actions item=action}
|
||||
<div id="action_{$action.ID}" class="bulkAction">
|
||||
{if !empty($action.CONTENT)}{$action.CONTENT}{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<p id="applyActionBlock" style="display:none" class="actionButtons">
|
||||
<input id="applyAction" class="submit" type="submit" value="{'Apply action'|@translate}" name="submit"> <span id="applyOnDetails"></span></p>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue