This repository was archived by the owner on Mar 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Fixed image saving for settings #539
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ | |
} | ||
} | ||
}); | ||
}); | ||
}, 400); | ||
} | ||
|
||
function updateCountry(angucompleteCountryObj) { | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this $timeout affect the image save?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i just put it in because without it, there was a console error. i figured whoever wrote the timeout wanted there to be an actual timeout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I wrote it awhile back? I just left it blank so it'd default to 0, cause I needed it to get added to the end of the event queue. Not having an explicit time shouldn't produce an error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here's the error:
TypeError: Cannot read property 'currentPassword' of undefined
at Object.fn (http://local.topcoder-dev.com:3000/settings/account-info/account-info.controller.js:46:33)
at Scope.$digest (http://local.topcoder-dev.com:3000/bower_components/angular/angular.js:15715:29)
at Scope.$apply (http://local.topcoder-dev.com:3000/bower_components/angular/angular.js:15986:24)
at http://local.topcoder-dev.com:3000/bower_components/angular/angular.js:17753:36
at completeOutstandingRequest (http://local.topcoder-dev.com:3000/bower_components/angular/angular.js:5490:10)
at http://local.topcoder-dev.com:3000/bower_components/angular/angular.js:5762:7
at nrWrapper (http://local.topcoder-dev.com:3000/settings/account/:322:12787) undefined(anonymous function) @ angular.js:12416(anonymous function) @ angular.js:9203(anonymous function) @ exception-handler.provider.js:57Scope.$digest @ angular.js:15733Scope.$apply @ angular.js:15986(anonymous function) @ angular.js:17753completeOutstandingRequest @ angular.js:5490(anonymous function) @ angular.js:5762nrWrapper @ (index):322
angular.js:12416 Error: Cannot read property 'currentPassword' of undefined Object {exception: TypeError: Cannot read property 'currentPassword' of undefined
at Object.fn (http://local.topcod…, cause: undefined}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird! Wonder why it stopped working haha. I guess 400ms isn't going to hurt anything :D I wish I could get rid of the $timeout completely!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, it's one of the things we should can when we refactor