mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Changed "Reset All" button to a link
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user