зеркало из https://github.com/mozilla/seasponge.git
feat(draw-route): Work on filtering stencils.
Not quite sure why this isn't working
This commit is contained in:
Родитель
89dbac1ce1
Коммит
9f85ad2288
|
@ -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'}">
|
||||
|
|
Загрузка…
Ссылка в новой задаче