* Convert $watch to ng-change and re-wrote test
* Removed unnecessary styles
* Use .form-control instead of class='form-control'
This commit is contained in:
Blade Barringer
2015-06-12 09:05:06 -05:00
parent b413e38682
commit 2f1111522c
4 changed files with 29 additions and 37 deletions

View File

@@ -31,11 +31,9 @@ habitrpg.controller("FiltersCtrl", ['$scope', '$rootScope', 'User', 'Shared',
// User.save();
};
$scope.$watch('filterQuery', function (newValue, oldValue) {
if (newValue !== oldValue) {
user.filterQuery = newValue;
}
});
$scope.updateTaskFilter = function(){
user.filterQuery = $scope.filterQuery;
};
$scope.createTag = function() {
User.user.ops.addTag({body:{name:$scope._newTag.name, id:Shared.uuid()}});