Ignore:
Timestamp:
Jan 13, 2013, 12:49:45 PM (11 years ago)
Author:
mistic100
Message:

compatible with Simple, new export options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/admin/template/export.tpl

    r20093 r20099  
    2020});
    2121
     22$("#invokeFrame").load(function() {
     23  $(this).css('height', $(this).contents().find('body').outerHeight(true)+10);
     24});
     25
    2226$("input[name='download']").click(function() {
    2327  $("#fields_active li").each(function() {
    24     $("#export_form").append('<input type="hidden" name="content[]" value="'+ $(this).data('name') +'"/>');
     28    $("#export_form").append('<input type="hidden" name="active[]" value="'+ $(this).data('name') +'"/>');
     29  });
     30  $("#fields_inactive li").each(function() {
     31    $("#export_form").append('<input type="hidden" name="inactive[]" value="'+ $(this).data('name') +'"/>');
    2532  });
    2633});
     
    3744  <ul id="fields_active" class="connectedSortable">
    3845    <h4>{'Active'|@translate}</h4>
    39     <li data-name="id"><img src="{$themeconf.admin_icon_dir}/cat_move.png"> id</li>
    40     <li data-name="name"><img src="{$themeconf.admin_icon_dir}/cat_move.png"> name</li>
    41     <li data-name="path"><img src="{$themeconf.admin_icon_dir}/cat_move.png"> path</li>
     46  {foreach from=$active_fields item=field}
     47    <li data-name="{$field}"><img src="{$themeconf.admin_icon_dir}/cat_move.png"> {$field}</li>
     48  {/foreach}
    4249  </ul>
    4350  <ul id="fields_inactive" class="connectedSortable">
    4451    <h4>{'Inactive'|@translate}</h4>
    45     <li data-name="file"><img src="{$themeconf.admin_icon_dir}/cat_move.png"> file</li>
    46     <li data-name="url"><img src="{$themeconf.admin_icon_dir}/cat_move.png"> url</li>
     52  {foreach from=$inactive_fields item=field}
     53    <li data-name="{$field}"><img src="{$themeconf.admin_icon_dir}/cat_move.png"> {$field}</li>
     54  {/foreach}
    4755  </ul>
    4856 
Note: See TracChangeset for help on using the changeset viewer.