Removing underlying modulation from bookmark if default one chosen.
This commit is contained in:
parent
4c66e285a2
commit
2062757ba4
|
|
@ -149,6 +149,9 @@ BookmarkBar.prototype.sanitizeBookmark = function(b) {
|
||||||
return "Must not have underlying modulation.";
|
return "Must not have underlying modulation.";
|
||||||
else if (mode.underlying.indexOf(b.underlying) < 0)
|
else if (mode.underlying.indexOf(b.underlying) < 0)
|
||||||
return "Must have valid underlying modulation.";
|
return "Must have valid underlying modulation.";
|
||||||
|
else if (mode.underlying.indexOf(b.underlying) == 0)
|
||||||
|
// default underlying modulation
|
||||||
|
b.underlying = '';
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue