mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-19 17:43:39 +00:00
added: notes and todos for keepRight
This commit is contained in:
committed by
Bryan Housel
parent
ee00635cc4
commit
cedf6955b5
@@ -289,7 +289,8 @@ export function uiKeepRightEditor(context) {
|
||||
this.blur(); // avoid keeping focus on the button - #4641
|
||||
var keepRight = services.keepRight;
|
||||
if (keepRight) {
|
||||
d.state = 'ignore_t';
|
||||
|
||||
d.state = d.state === 'ignore_t' ? '' : 'ignore_t';
|
||||
keepRight.postKeepRightUpdate(d, function(err, error) {
|
||||
dispatch.call('change', error);
|
||||
});
|
||||
@@ -306,7 +307,7 @@ export function uiKeepRightEditor(context) {
|
||||
this.blur(); // avoid keeping focus on the button - #4641
|
||||
var keepRight = services.keepRight;
|
||||
if (keepRight) {
|
||||
d.state = 'ignore';
|
||||
d.state = d.state === 'ignore' ? '' : 'ignore';
|
||||
keepRight.postKeepRightUpdate(d, function(err, error) {
|
||||
dispatch.call('change', error);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user