From 2f32322402defe6f8c52e577ae69caa31ad828b5 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 31 Mar 2012 09:41:48 +0000 Subject: prevent deleting all order criterias on main config page git-svn-id: http://piwigo.org/svn/trunk@13838 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/configuration.tpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'admin/themes') diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl index eab3aa8d3..faa3d8517 100644 --- a/admin/themes/default/template/configuration.tpl +++ b/admin/themes/default/template/configuration.tpl @@ -142,6 +142,9 @@ function updateRemoveFilterTrigger() { fields--; updateAddFilterLink(); }); + + $(".removeFilter").css('display', ''); + $(".filter:first .removeFilter").css('display', 'none'); } jQuery(document).ready(function () { @@ -150,8 +153,8 @@ jQuery(document).ready(function () { $(this).prev('span.filter').children('select[name="order_by[]"]').val(''); fields++; - updateAddFilterLink(); updateRemoveFilterTrigger(); + updateAddFilterLink(); }); updateRemoveFilterTrigger(); -- cgit v1.2.3