Skip to content

Commit

Permalink
Correct fix
Browse files Browse the repository at this point in the history
Annoying, since this is not a checkbox, so we need to do extra work to
make sure we are doing a 0 <-> 1 conversion (since it is stored as a
string, not an integer, so it is a pain to flip the value since "0" is
not empty-ish in javascript).

Making the value -1 is not correct, since this is expected to be 0 or 1.
  • Loading branch information
slusarz committed Apr 15, 2014
1 parent 69162f2 commit f708a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imp/js/compose-dimp.js
Expand Up @@ -1273,7 +1273,7 @@ var DimpCompose = {
if (id.startsWith(pair.key + '_')) {
var t = pair.value.get(id.substring(pair.key.length + 1));
if (t) {
$(t).setValue(1 - $F(t));
$(t).setValue(~~(!(~~$F(t))));
}
}
});
Expand Down

0 comments on commit f708a22

Please sign in to comment.