Added reset all button for issue #5503

This commit is contained in:
Athif Shaffy
2019-02-28 09:59:41 +05:30
parent c3ee4a2da9
commit e16342e8aa
41 changed files with 50 additions and 38 deletions

View File

@@ -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