feat(draw-route): Work on filtering stencils.

Not quite sure why this isn't working
This commit is contained in:
Joel Kuntz 2014-12-17 12:41:47 -04:00
Родитель 89dbac1ce1
Коммит 9f85ad2288
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -11,6 +11,8 @@ angular.module('seaspongeApp')
.controller 'DrawController', ['$scope', 'Stencils', ($scope, Stencils) ->
$scope.stencils = Stencils
console.log('stencils', Stencils)
console.log('scope stencils', $scope.stencils)
$scope.menu = {
stencilsOpen: true

Просмотреть файл

@ -35,8 +35,8 @@
</accordion-heading>
<div class="all-stencils row">
<div ng-repeat="stencil in stencils">
<input type="text" class="form-control" ng-model="stencilQuery.title" placeholder="Search Stencils">
<div ng-repeat="stencil in stencils | filter:stencilQuery">
<div class="stencil col-xs-6 col-md-4 col-lg-4"
draggable="true" data-drag="true" jqyoui-draggable ng-model="stencil"
data-jqyoui-options="{helper: 'clone', animate: true, placeholder: 'keep'}">