Ignore:
Timestamp:
Nov 21, 2012, 3:28:55 PM (12 years ago)
Author:
mistic100
Message:

feature:2718 Add batch manager filters for photo dimensions, small cleaning in the code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/batch_manager_global.tpl

    r19069 r19121  
    490490  /* dimensions sliders */
    491491  /**
    492    * find the key from a value in the startStopValues array, for the hour slider
     492   * find the key from a value in the startStopValues array
    493493   */
    494494  function getSliderKeyFromValue(value, values) {
     
    604604    var max = jQuery(this).data("max");
    605605
    606     $("#filter_dimension_"+ type +"_slider").slider(
    607       "values",
    608       0,
     606    $("#filter_dimension_"+ type +"_slider").slider("values", 0,
    609607      getSliderKeyFromValue(min, dimension_values[type])
    610608    );
    611609
    612     $("#filter_dimension_"+type+"_slider").slider("values", 1, getSliderKeyFromValue(max, dimension_values[type]));
     610    $("#filter_dimension_"+type+"_slider").slider("values", 1,
     611      getSliderKeyFromValue(max, dimension_values[type])
     612    );
    613613  });
    614614});
     
    686686         
    687687          {'Ratio'|@translate} ({'Width'|@translate}/{'Height'|@translate}) <span id="filter_dimension_ratio_info">{'between %.2f and %.2f'|@translate|sprintf:$dimensions.selected.min_ratio:$dimensions.selected.max_ratio}</span>
    688 {if isset($dimensions.ratio_portrait.min)}
     688{if isset($dimensions.ratio_portrait)}
    689689          | <a class="dimensions-choice" data-type="ratio" data-min="{$dimensions.ratio_portrait.min}" data-max="{$dimensions.ratio_portrait.max}">{'Portrait'|@translate}</a>
    690690{/if}
    691 {if isset($dimensions.ratio_square.min)}
     691{if isset($dimensions.ratio_square)}
    692692          | <a class="dimensions-choice" data-type="ratio" data-min="{$dimensions.ratio_square.min}" data-max="{$dimensions.ratio_square.max}">{'square'|@translate}</a>
    693693{/if}
    694 {if isset($dimensions.ratio_landscape.min)}
     694{if isset($dimensions.ratio_landscape)}
    695695          | <a class="dimensions-choice" data-type="ratio" data-min="{$dimensions.ratio_landscape.min}" data-max="{$dimensions.ratio_landscape.max}">{'Landscape'|@translate}</a>
    696696{/if}
    697 {if isset($dimensions.ratio_panorama.min)}
     697{if isset($dimensions.ratio_panorama)}
    698698          | <a class="dimensions-choice" data-type="ratio" data-min="{$dimensions.ratio_panorama.min}" data-max="{$dimensions.ratio_panorama.max}">{'Panorama'|@translate}</a>
    699699{/if}
Note: See TracChangeset for help on using the changeset viewer.