[chronojump-server] Reporting rfid error if flask not running
- From: Max Ros i Morejon <maxros src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump-server] Reporting rfid error if flask not running
- Date: Mon, 20 May 2019 09:46:07 +0000 (UTC)
commit 53bd78df1af921853b6b66a983d4c5a8a01d8f21
Author: Max Ros i Morejon <mros33 gmail com>
Date: Mon May 20 11:45:53 2019 +0200
Reporting rfid error if flask not running
.../templates/organizations/players/players_list.html | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/chronojumpserver-django/chronojump_networks/templates/organizations/players/players_list.html
b/chronojumpserver-django/chronojump_networks/templates/organizations/players/players_list.html
index 2b8cb22..f23bfac 100644
--- a/chronojumpserver-django/chronojump_networks/templates/organizations/players/players_list.html
+++ b/chronojumpserver-django/chronojump_networks/templates/organizations/players/players_list.html
@@ -130,7 +130,7 @@
{ /* Create Player button */
text: "{% trans 'Create player' %}",
className: "btn btn-primary",
- action: function( e, dt, node, config ) {
+ action: function( e, dt, node, config ) {
newPlayerInitialOperations();
// Set the title for new player task
var title = "{% trans 'Create new player '%}";
@@ -244,7 +244,11 @@
$('#input_rfid').val(data.rfid);
},
error: function(request, status, error) {
- alert(request.responseText);
+ /*if(request.responseText == "undefined") alert("Flask not working. Execute it or
contact with Chronojump team.");
+ else alert(request.responseText);*/
+ var alertxt = request.responseText;
+ if(alertxt != "success") alert("Flask not working. Execute it or contact with Chronojump
team.");
+ else alert(alertxt);
}
})
})
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]