prevent deleting all order criterias on main config page
git-svn-id: http://piwigo.org/svn/trunk@13838 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
a90fed4d55
commit
2f32322402
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue