Calculator: Removes 0 on bail (#4169)

* Removed 0 on error. Saves user confusion.

* Add tracking pixel.
master
PJ Hampton 2017-05-22 21:17:30 +01:00 committed by Zaahir Moolla
parent 4c789c0c85
commit 312edbc53c
1 changed files with 6 additions and 1 deletions

View File

@ -458,9 +458,14 @@ DDH.calculator = DDH.calculator || {};
setCButtonState("C");
return false;
} else {
display.value = "0";
display.value = "";
evaluated = true;
setCButtonState("C");
DDG.pixel.fire(
'iafd',
'calculator', {
q: DDG.get_query_encoded()
});
return false;
}
}