We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b1517a1 + 407cff7 commit e4e1b0aCopy full SHA for e4e1b0a
CHANGELOG.md
@@ -0,0 +1,2 @@
1
+XX.XX.X
2
+* For events, warning added for the negative count.
events.html
@@ -228,6 +228,11 @@ <h4 class="modal-title text-center">Use this snippet to send an event to server<
228
}
229
230
data.count = parseInt($("#event-count").val()) || 1;
231
+ if (data.count < 0) {
232
+ $("#event-count").parent().prepend('<div class="alert alert-danger" role="alert">Count for event cannot be negative</div>');
233
+ scrollToElement(".section");
234
+ return;
235
+ }
236
237
if ($("#event-sum").val() != "") {
238
data.sum = parseFloat($("#event-sum").val());
0 commit comments