mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-13 06:36:28 +00:00
Added reset all button for issue #5503
This commit is contained in:
@@ -96,6 +96,16 @@ export function uiBackgroundDisplayOptions(context) {
|
||||
})
|
||||
.call(svgIcon('#iD-icon-' + (textDirection === 'rtl' ? 'redo' : 'undo')));
|
||||
|
||||
//reset all button
|
||||
containerEnter.append('button')
|
||||
.append('text')
|
||||
.text(t('background.reset_all'))
|
||||
.attr('class', 'display-option-reset display-option-reset')
|
||||
.on('click', function() {
|
||||
for (var i=0; i< sliders.length; i++) {
|
||||
updateValue(sliders[i],1);
|
||||
}
|
||||
});
|
||||
|
||||
// update
|
||||
container = containerEnter
|
||||
|
||||
Reference in New Issue
Block a user