Ignore:
Timestamp:
Jul 13, 2012, 12:09:19 PM (12 years ago)
Author:
mistic100
Message:

-rework the main menu
-bug when a collection is create through AJAX
-add "Remove from collection" on colorbox
-minor interfaces changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/template/edit.tpl

    r16658 r16688  
    2323  delay: 0,
    2424  defaultPosition: 'right'
     25});
     26
     27jQuery("#actions input").click(function() {ldelim}
     28  if (confirm("{'Are you sure?'|@translate}")) {ldelim}
     29    document.location.href = jQuery(this).data("href");
     30  }
     31  return false;
    2532});
    2633{if $collection.PUBLIC}bindZclip();{/if}
     
    4956
    5057
    51 {if $collection and not $collection.IS_TEMP}
     58{if $collection}
    5259<form action="{$F_ACTION}" method="post">
    5360<fieldset id="colProperties">
     
    6875</fieldset>
    6976</form>
    70 {/if}
    7177
    7278
    73 {if !empty($THUMBNAILS)}
     79{if $collection.NB_IMAGES > 0}
    7480<ul class="thumbnails" id="thumbnails">
    7581{$THUMBNAILS}
     
    8288
    8389
    84 <p style="text-align:center;font-weight:bold;margin:20px;"><a href="{$U_LIST}" rel="nofollow">{'Return to collections list'|@translate}</a></p>
     90<form id="actions" style="text-align:center;">
     91<input type="submit" data-href="{$collection.U_CLEAR}" value="{'Clear collection'|@translate}">
     92<input type="submit" data-href="{$collection.U_DELETE}" value="{'Delete'|@translate}">
     93</form>
     94{/if}
     95
    8596
    8697</div>{* <!-- content --> *}
Note: See TracChangeset for help on using the changeset viewer.