From 00a008a31dbb3c882d09960f105159aadc072beb Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Fri, 22 Mar 2019 11:23:44 -0400 Subject: [PATCH] Changed "Reset All" button to a link --- modules/ui/background_display_options.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/ui/background_display_options.js b/modules/ui/background_display_options.js index 81fa11b7a..c434e74e9 100644 --- a/modules/ui/background_display_options.js +++ b/modules/ui/background_display_options.js @@ -96,13 +96,14 @@ export function uiBackgroundDisplayOptions(context) { }) .call(svgIcon('#iD-icon-' + (textDirection === 'rtl' ? 'redo' : 'undo'))); - //reset all button - containerEnter.append('button') - .append('text') + // reset all button + containerEnter + .append('a') + .attr('class', 'display-option-resetlink') + .attr('href', '#') .text(t('background.reset_all')) - .attr('class', 'display-option-reset display-option-reset') .on('click', function() { - for (var i=0; i< sliders.length; i++) { + for (var i = 0; i < sliders.length; i++) { updateValue(sliders[i],1); } });