Set icon for error message
This commit is contained in:
@@ -165,10 +165,10 @@ script(type="text/javascript").
|
|||||||
.fail(function(data){
|
.fail(function(data){
|
||||||
/* Something went wrong, print it */
|
/* Something went wrong, print it */
|
||||||
if (data.status == 422) {
|
if (data.status == 422) {
|
||||||
statusBarSet('error', 'The submitted data could not be validated.', 8000);
|
statusBarSet('error', 'The submitted data could not be validated.', 'pi-warning', 8000);
|
||||||
} else {
|
} else {
|
||||||
statusBarSet('error', 'Error! We\'ve been notified and are working on it - '
|
statusBarSet('error', 'Error! We\'ve been notified and are working on it - '
|
||||||
+ data.status + ' ' + data.statusText, 8000);
|
+ data.status + ' ' + data.statusText, 'pi-warning', 8000);
|
||||||
}
|
}
|
||||||
|
|
||||||
$("li.button-save").addClass('field-error');
|
$("li.button-save").addClass('field-error');
|
||||||
@@ -344,5 +344,4 @@ script(type="text/javascript").
|
|||||||
}
|
}
|
||||||
//- console.log($._data($(elementSelector)[0], "events"));
|
//- console.log($._data($(elementSelector)[0], "events"));
|
||||||
|
|
||||||
|
|
||||||
| {% endblock %}
|
| {% endblock %}
|
||||||
|
Reference in New Issue
Block a user