Changeset 9916


Ignore:
Timestamp:
Mar 29, 2011, 5:10:48 PM (9 years ago)
Author:
patdenice
Message:

feature:2237
new trigger to add action on batch manager

Location:
trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager_global.php

    r9035 r9916  
    387387      );
    388388  }
     389
     390  trigger_action('element_set_global_action', $action, $collection);
    389391}
    390392
  • trunk/admin/themes/default/template/batch_manager_global.tpl

    r9912 r9916  
    469469      <option value="add_to_caddie">{'add to caddie'|@translate}</option>
    470470  {/if}
     471  {if !empty($element_set_global_plugins_actions)}
     472    {foreach from=$element_set_global_plugins_actions item=action}
     473      <option value="{$action.ID}">{$action.NAME}</option>
     474    {/foreach}
     475  {/if}
    471476    </select>
    472477
     
    550555    </div>
    551556
     557    <!-- plugins -->
     558{if !empty($element_set_global_plugins_actions)}
     559  {foreach from=$element_set_global_plugins_actions item=action}
     560    <div id="action_{$action.ID}" class="bulkAction">
     561    {if !empty($action.CONTENT)}{$action.CONTENT}{/if}
     562    </div>
     563  {/foreach}
     564{/if}
     565
    552566    <p id="applyActionBlock" style="display:none" class="actionButtons">
    553567      <input id="applyAction" class="submit" type="submit" value="{'Apply action'|@translate}" name="submit"> <span id="applyOnDetails"></span></p>
Note: See TracChangeset for help on using the changeset viewer.