Added extra argument 'id' to deleteFilter function to send to delete action for deleting a filter.

This commit is contained in:
bhaal2 2016-09-15 01:57:31 +10:00
parent 67f2ddc404
commit 17555bf623
1 changed files with 2 additions and 2 deletions

View File

@ -79,13 +79,13 @@ function saveFilter( element )
form.submit(); form.submit();
} }
function deleteFilter( element, name ) function deleteFilter( element, id, name )
{ {
if ( confirm( deleteSavedFilterString+" '"+name+"'" ) ) if ( confirm( deleteSavedFilterString+" '"+name+"'" ) )
{ {
var form = element.form; var form = element.form;
form.action.value = 'delete'; form.action.value = 'delete';
form.fid.value = name; form.fid.value = id;
submitToFilter( element, 1 ); submitToFilter( element, 1 );
} }
} }