Working on time tracker

This commit is contained in:
Hillel Coren 2017-09-26 11:46:49 +03:00
parent aac382321a
commit 4ff0a075ca

View File

@ -79,6 +79,7 @@
}, },
error: function(error) { error: function(error) {
toastr.error("{{ trans('texts.error_refresh_page') }}"); toastr.error("{{ trans('texts.error_refresh_page') }}");
swal('failed to bulk save');
} }
}); });
} }
@ -437,6 +438,7 @@
self.save = function(data, isSelected) { self.save = function(data, isSelected) {
if (self.isValid() !== true) { if (self.isValid() !== true) {
toastr.error("{{ trans('texts.error_refresh_page') }}"); toastr.error("{{ trans('texts.error_refresh_page') }}");
swal('not valid on save');
throw self.isValid(); throw self.isValid();
return; return;
} }
@ -506,6 +508,7 @@
}, },
error: function(error) { error: function(error) {
toastr.error("{{ trans('texts.error_refresh_page') }}"); toastr.error("{{ trans('texts.error_refresh_page') }}");
swal('failed to save');
}, },
}); });
} }