Ignore:
Timestamp:
Jun 16, 2011, 12:54:59 PM (13 years ago)
Author:
mistic100
Message:

add a list of all SmartAlbums

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/SmartAlbums/template/cat_modify.tpl

    r11334 r11392  
    4242    return false;
    4343  });
     44 
     45
    4446 
    4547  function add_filter(type) {
     
    100102        }
    101103 
     104  function doBlink(obj,start,finish) {
     105    jQuery(obj).fadeOut(400).fadeIn(400);
     106    if(start!=finish) {
     107      doBlink(obj,start+1,finish);
     108    } else {
     109      jQuery(obj).fadeOut(400);
     110    }
     111  }
     112   
     113  doBlink('.new_smart', 0, 3);
    102114  init_jquery_handlers();
    103115});
     
    111123  <legend>{'SmartAlbums'|@translate}</legend>
    112124 
    113   <label><input type="checkbox" name="is_smart" {if isset($filters)}checked="checked"{/if}/> {'This album is a SmartAlbum'|@translate}</label>
     125  <label><input type="checkbox" name="is_smart" {if isset($filters) OR isset($new_smart)}checked="checked"{/if}/> {'This album is a SmartAlbum'|@translate}</label>
    114126 
    115 <div id="SmartAlbum_options" style="margin-top:1em;{if !isset($filters)}display:none;{/if}">
     127<div id="SmartAlbum_options" style="margin-top:1em;{if !isset($filters) AND !isset($new_smart)}display:none;{/if}">
    116128  <ul id="filterList">
    117129    {counter start=0 assign=i}
     
    151163      </select>
    152164      <a id="removeFilters">{'Remove all filters'|@translate}</a>
     165      {if isset($new_smart)}<span class="new_smart">{'Add filters here'|@translate}</span>{/if}
    153166  </p>
    154167</div>
     
    156169  <p class="actionButtons" id="applyFilterBlock">
    157170    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitFilters"/>
    158     <input class="submit" type="submit" value="{'Count'|@translate}" name="countImages" {if !isset($filters)}style="display:none;"{/if}/>
     171    <input class="submit" type="submit" value="{'Count'|@translate}" name="countImages" {if !isset($filters) AND !isset($new_smart)}style="display:none;"{/if}/>
    159172    <span class="count_images_display">{$IMAGE_COUNT}</span>
    160173  </p>
Note: See TracChangeset for help on using the changeset viewer.