-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reworked the save object finder to make it more angular #4222
Conversation
BigFunger
commented
Jun 12, 2015
- Removed most of the jquery code and made it more angular
- Moved $scope variables into a controller object
- Re-enabled the keyboard navigation
…able keyboard navigation
Your use of |
type="text"> | ||
<span class="finder-hit-count"><strong>{{hitCount}}</strong> {{type}}</span> | ||
<input input-focus | ||
ng-model="filter" |
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.
We don't do alignment like this. Just make it 2 spaces.
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.
//key handler for the filter text box | ||
self.filterKeyDown = function ($event) { | ||
if (keymap[$event.keyCode] !== 'tab') | ||
return; |
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.
Curly braces are required if you're doing multi-line conditionals. Here, return should just be on the same line.
@@ -67,20 +77,22 @@ define(function (require) { | |||
if (!$scope.userOnChoose) { | |||
return hit.url; | |||
} | |||
|
|||
return '#'; |
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.
reworked the save object finder to make it more angular