diff options
author | mistic100 <mistic@piwigo.org> | 2012-11-21 14:28:55 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2012-11-21 14:28:55 +0000 |
commit | ad4c9f96a59953eb946a02519efe8aadc6ab28f2 (patch) | |
tree | fcc609f38809a2f8f40f22b974b2195bc24de2dc /admin/themes/default/template/batch_manager_global.tpl | |
parent | f35e8ccc3dd374dc551d0d859716dd3b007ca466 (diff) |
feature:2718 Add batch manager filters for photo dimensions, small cleaning in the code
git-svn-id: http://piwigo.org/svn/trunk@19121 68402e56-0260-453c-a942-63ccdbb3a9ee
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> |