aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-03-31 09:41:48 +0000
committermistic100 <mistic@piwigo.org>2012-03-31 09:41:48 +0000
commit2f32322402defe6f8c52e577ae69caa31ad828b5 (patch)
tree32430b131d4192a424f43bb62b7a8767fd7fffe3
parenta90fed4d55b15c50143e64d0deca605768c24d22 (diff)
prevent deleting all order criterias on main config page
git-svn-id: http://piwigo.org/svn/trunk@13838 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/themes/default/template/configuration.tpl5
1 files changed, 4 insertions, 1 deletions
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();