diff options
Diffstat (limited to 'admin/themes/default/template/batch_manager_global.tpl')
-rw-r--r-- | admin/themes/default/template/batch_manager_global.tpl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl index eb085e31f..fe744f9a6 100644 --- a/admin/themes/default/template/batch_manager_global.tpl +++ b/admin/themes/default/template/batch_manager_global.tpl @@ -489,7 +489,7 @@ $(document).ready(function() { /* dimensions sliders */ /** - * find the key from a value in the startStopValues array, for the hour slider + * find the key from a value in the startStopValues array */ function getSliderKeyFromValue(value, values) { for (var key in values) { @@ -603,13 +603,13 @@ $(document).ready(function() { var min = jQuery(this).data("min"); var max = jQuery(this).data("max"); - $("#filter_dimension_"+ type +"_slider").slider( - "values", - 0, + $("#filter_dimension_"+ type +"_slider").slider("values", 0, getSliderKeyFromValue(min, dimension_values[type]) ); - $("#filter_dimension_"+type+"_slider").slider("values", 1, getSliderKeyFromValue(max, dimension_values[type])); + $("#filter_dimension_"+type+"_slider").slider("values", 1, + getSliderKeyFromValue(max, dimension_values[type]) + ); }); }); @@ -685,16 +685,16 @@ $(document).ready(function() { <div id="filter_dimension_height_slider"></div> {'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> -{if isset($dimensions.ratio_portrait.min)} +{if isset($dimensions.ratio_portrait)} | <a class="dimensions-choice" data-type="ratio" data-min="{$dimensions.ratio_portrait.min}" data-max="{$dimensions.ratio_portrait.max}">{'Portrait'|@translate}</a> {/if} -{if isset($dimensions.ratio_square.min)} +{if isset($dimensions.ratio_square)} | <a class="dimensions-choice" data-type="ratio" data-min="{$dimensions.ratio_square.min}" data-max="{$dimensions.ratio_square.max}">{'square'|@translate}</a> {/if} -{if isset($dimensions.ratio_landscape.min)} +{if isset($dimensions.ratio_landscape)} | <a class="dimensions-choice" data-type="ratio" data-min="{$dimensions.ratio_landscape.min}" data-max="{$dimensions.ratio_landscape.max}">{'Landscape'|@translate}</a> {/if} -{if isset($dimensions.ratio_panorama.min)} +{if isset($dimensions.ratio_panorama)} | <a class="dimensions-choice" data-type="ratio" data-min="{$dimensions.ratio_panorama.min}" data-max="{$dimensions.ratio_panorama.max}">{'Panorama'|@translate}</a> {/if} | <a class="dimensions-choice" data-type="ratio" data-min="{$dimensions.bounds.min_ratio}" data-max="{$dimensions.bounds.max_ratio}">{'Reset'|@translate}</a> |