v.2.10
-Fix cp1251 to utf-8 decode
This commit is contained in:
@@ -123,7 +123,7 @@
|
||||
$scope.total = data.total;
|
||||
|
||||
$('#report-out').modal();
|
||||
}
|
||||
}
|
||||
|
||||
}, function (data) {
|
||||
$scope.update();
|
||||
@@ -131,6 +131,8 @@
|
||||
};
|
||||
|
||||
$scope.restoreShift = function (shift) {
|
||||
$('#preload-modal').modal();
|
||||
Notification.primary('Дождитесь загрузки! Страница обновится автоматически.');
|
||||
smartRequest.post('v1/restoreshift', {
|
||||
shift_id: shift.id
|
||||
}, function (data) {
|
||||
@@ -138,11 +140,9 @@
|
||||
$scope.response = data.message;
|
||||
if (data.status == 'success') {
|
||||
Notification.success(data.message);
|
||||
console.log(data.status);
|
||||
console.log(data.message);
|
||||
setTimeout(function() {
|
||||
location.reload();
|
||||
}, 5000);
|
||||
}, 1000);
|
||||
}
|
||||
if ($scope.status == 'error') {
|
||||
Notification.error(data.message);
|
||||
|
||||
Reference in New Issue
Block a user