projects
/
angular-drzb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33876f3
)
log as info not error
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 20 Feb 2013 19:13:45 +0000
(20:13 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 20 Feb 2013 19:13:45 +0000
(20:13 +0100)
app/js/controllers.js
patch
|
blob
|
history
diff --git
a/app/js/controllers.js
b/app/js/controllers.js
index
321d570
..
7b47fb5
100644
(file)
--- a/
app/js/controllers.js
+++ b/
app/js/controllers.js
@@
-32,7
+32,7
@@
function RegistrationCtrl($scope, $log, Registration, $routeParams, $location, $
registration.$save( function(registration) {
$log.info('id =', registration.id, 'state = ', registration.state);
if ( registration.id && registration.state ) {
- $log.
error(
$location.path(), registration.state, $routeParams );
+ $log.
info( 'have id && state',
$location.path(), registration.state, $routeParams );
if ( $location.path().split(/\//)[1] != registration.state ) {
$location.path( '/' + registration.state + '/' + registration.id );
} else {