From 1590c39535b12216265f439546870c0fc8d9541a Mon Sep 17 00:00:00 2001 From: s441471 Date: Mon, 14 Jan 2019 17:40:19 +0100 Subject: [PATCH] INQ-36 mobile layout --- inquire.db | Bin 32768 -> 32768 bytes templates/lecturer.html | 15 ++++++++------- templates/student.html | 10 ++++------ 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/inquire.db b/inquire.db index 50d97e177420ccb98a6ce35ee38a95ca5d03ce72..546964b1925d7470389fe8329889dca05735c127 100644 GIT binary patch delta 77 zcmV-T0J8spfC7Mk0+1U4=8+sj0p_t_p-%}3hyVl$SpW%HvkFj82?{L%2>=N*CkP1@ jliyz<2q1J}YY){0rm=yd1(Pmcrvv~104tG!C!$~=Veu9d delta 1517 zcmajfy;2lG5C`x*0=PXy1Vlud^G?3igX#I$k4}96OpSyRBLfRBII_9W5Q-;&#MrWm zH}QS!;W%&I+g_7Re*d1@>FJr_aAr81x!h>nUBSD?-OrPo<2Z^U6Mv5ufB$N|KaQ_1 zk9^n0QEb+l%_!0e^Pa*U+72e9Gg9f`>$fj`Fd?!~5lP9Vpe4102q>uus=UOSl!hZo zk&J=E8b#tN<_CfvBwwbf-H-R^&cZ}SW?DP5He88XX>yWBw9j2sp|Mcv%4+p|u za0DIf$G*C=sL3Xe#B(>xc zSglb9Pi3_hRz~Ve_ulckLz~8a@|p;Pv6hAFYE%i0pBXuRne0-kx;+06#?V@c;k- diff --git a/templates/lecturer.html b/templates/lecturer.html index c0c3618..8f14625 100644 --- a/templates/lecturer.html +++ b/templates/lecturer.html @@ -118,12 +118,13 @@ url: url, type: 'POST', data: answer, - succes: function(response) { - // location.reload(); + complete: function() { + alertify.notify('Pomyślnie wysłano odpowiedź', 'success', 3).then( + location.reload()); } }); //location.reload(); - alertify.notify('Pomyślnie wysłano odpowiedź', 'success', 3); + }); $('.question--mark').on('click', () => { @@ -142,12 +143,12 @@ url: '/delete', type: 'POST', data: delID, - succes: function(response) { - // location.reload(); + complete: function() { + alertify.notify('Pytanie zostało usunięte', 'error', 3).then( + location.reload()); } - }); - alertify.notify('Pytanie zostało usunięte', 'error', 3); + }, function(){ alertify.notify('Anulowano usunięcie', 'error', 3); } diff --git a/templates/student.html b/templates/student.html index 6f5ff75..f743446 100644 --- a/templates/student.html +++ b/templates/student.html @@ -124,8 +124,8 @@ type: 'POST', data: question, complete: function() { - location.reload(); - alertify.notify('Pomyślnie wysłano pytanie', 'success', 3); + alertify.notify('Pomyślnie wysłano pytanie', 'success', 3).then( + location.reload()); } }); @@ -140,13 +140,11 @@ $.ajax({ url: link, type: 'POST', - succes: function(response) { + complete: function() { + alertify.notify('Pomyślnie oceniono pytanie', 'success', 3); location.reload(); - //alert(response) } }); - alertify.notify('Pomyślnie oceniono pytanie', 'success', 3); - location.reload(); });