INQ-36 mobile layout

This commit is contained in:
s441471 2019-01-14 17:40:19 +01:00
parent 7485e60777
commit 1590c39535
3 changed files with 12 additions and 13 deletions

Binary file not shown.

View File

@ -118,12 +118,13 @@
url: url, url: url,
type: 'POST', type: 'POST',
data: answer, data: answer,
succes: function(response) { complete: function() {
// location.reload(); alertify.notify('Pomyślnie wysłano odpowiedź', 'success', 3).then(
location.reload());
} }
}); });
//location.reload(); //location.reload();
alertify.notify('Pomyślnie wysłano odpowiedź', 'success', 3);
}); });
$('.question--mark').on('click', () => { $('.question--mark').on('click', () => {
@ -142,12 +143,12 @@
url: '/delete', url: '/delete',
type: 'POST', type: 'POST',
data: delID, data: delID,
succes: function(response) { complete: function() {
// location.reload(); alertify.notify('Pytanie zostało usunięte', 'error', 3).then(
location.reload());
} }
}); });
alertify.notify('Pytanie zostało usunięte', 'error', 3);
}, function(){ }, function(){
alertify.notify('Anulowano usunięcie', 'error', 3); alertify.notify('Anulowano usunięcie', 'error', 3);
} }

View File

@ -124,8 +124,8 @@
type: 'POST', type: 'POST',
data: question, data: question,
complete: function() { complete: function() {
location.reload(); alertify.notify('Pomyślnie wysłano pytanie', 'success', 3).then(
alertify.notify('Pomyślnie wysłano pytanie', 'success', 3); location.reload());
} }
}); });
@ -140,13 +140,11 @@
$.ajax({ $.ajax({
url: link, url: link,
type: 'POST', type: 'POST',
succes: function(response) { complete: function() {
alertify.notify('Pomyślnie oceniono pytanie', 'success', 3);
location.reload(); location.reload();
//alert(response)
} }
}); });
alertify.notify('Pomyślnie oceniono pytanie', 'success', 3);
location.reload();
}); });