Making TagRule autocomplete available to models other than Customer

Incorporate ng admin.tags module and rails TagController into existing admin.tagRules module + TagRuleController
This commit is contained in:
Rob Harrington
2016-05-11 10:52:50 +10:00
parent 9e0b97dc9c
commit ddcfe1535a
20 changed files with 89 additions and 74 deletions

View File

@@ -9,8 +9,9 @@
//= require angular-flash.min.js
//= require shared/ng-tags-input.min.js
//= require shared/mm-foundation-tpls-0.8.0.min.js
//= require textAngular.min.js
//= require textAngular-rangy.min.js
//= require textAngular-sanitize.min.js
//= require textAngular.min.js
//= require moment
angular.module('templates', [])

View File

@@ -56,7 +56,7 @@ describe "CustomersCtrl", ->
{ text: 'three' }
]
beforeEach ->
http.expectGET('/admin/tags.json?enterprise_id=1').respond 200, tags
http.expectGET('/admin/tag_rules/map_by_tag.json?enterprise_id=1').respond 200, tags
it "retrieves the tag list", ->
promise = scope.findTags('')