Make sure the url params override previous ones in case they are
empty, make sure we still send them through the fieldset form with
an empty value, rather than not send them at all (and then they are
being re-merged into the existing URL and become essentially 'sticky')
Change-Id: I294dba17c5a5b792f5bf5064a76dedefa4d12557
// Collect all data from form
$( e.target ).find( 'input:not([type="hidden"],[type="submit"]), select' ).each( function () {
+ var value = '';
+
if ( !$( this ).is( ':checkbox' ) || $( this ).is( ':checked' ) ) {
- data[ $( this ).prop( 'name' ) ] = $( this ).val();
+ value = $( this ).val();
}
+
+ data[ $( this ).prop( 'name' ) ] = value;
} );
this.controller.updateChangesList( data );