Changed "Reset All" button to a link

This commit is contained in:
Bryan Housel
2019-03-22 11:23:44 -04:00
parent 18683e93a0
commit 00a008a31d

View File

@@ -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);
}
});