[guadec-web-regcfp/develop] Use boolean instead of string
- From: Patrick Uiterwijk <puiterwijk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web-regcfp/develop] Use boolean instead of string
- Date: Thu, 6 Aug 2015 17:06:35 +0000 (UTC)
commit 96be678e476838b36cb27d028b0800085dfae726
Author: Patrick Uiterwijk <puiterwijk redhat com>
Date: Wed Aug 5 23:08:32 2015 +0200
Use boolean instead of string
views/desk/main.hbs | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/views/desk/main.hbs b/views/desk/main.hbs
index b912626..fc4798c 100644
--- a/views/desk/main.hbs
+++ b/views/desk/main.hbs
@@ -60,7 +60,7 @@
<form class="finish_reg_form" method="post" action="/desk/finish"
data-message="Really finish registration for '{{this.User.name}}' and print badge?"
data-needed="{{this.needed_for_receipt}}"
- data-receipt_eligible="{{this.eligible_for_receipt}}">
+ data-receipteligible="{{this.eligible_for_receipt}}">
<input type="hidden" name="regid" value="{{this.id}}">
<input type="submit" value="Print badge">
</form>
@@ -98,8 +98,8 @@ $(function() {
});
$('.finish_reg_form').submit(function(event) {
- var eligible = $(event.target).data('receipt_eligible');
- if(eligible != 'true') {
+ var eligible = $(event.target).data('receipteligible');
+ if(eligible != true) {
return !window.confirm('CAUTION: User did not pay enough for receipt (needed: ' +
$(event.target).data('needed') + '). Do you want to cancel?');
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]