-
Notifications
You must be signed in to change notification settings - Fork 7
/
templates.js
1 lines (1 loc) · 1.57 KB
/
templates.js
1
angular.module('angular-tag/templates', []).run(['$templateCache', function($templateCache) {$templateCache.put('angular-tag/templates/input.html','<div id="main-tag">\n<div class="tag-container">\n <ul ng-class="[\'tag\',{focus:isFocus},theme ]" ng-click="isFocus=true" ng-keydown="direction_keys($event)">\n <li ng-repeat="select in selected" ng-click="(moveToTag($event,$index)) " data-drop="true" data-drag="true" ng-model="selected" jqyoui-droppable="{index: {{$index}}}" jqyoui-draggable="{index: {{$index}}, insertInline: true, direction:\'jqyouiDirection\'}" data-jqyoui-options="{revert: \'invalid\'}" data-direction="{{item.jqyouiDirection}}">\n {{select[displayField]}} <a href="javascript:void(0)" ng-click="remove(select)">×</a>\n </li>\n<li>\n <input name="{{name}}" ng-class="{error:hasError}" ng-model="input" ng-keyup="on_input_keyup($event)" ng-keydown="on_input_keydown($event)" ng-focus="isFocus=true" ng-blur="onblur();" focus-me="isFocus"\n type="input" placeholder="{{placeholder}}" ng-required="required && (!selected.length || selected.length==0)" >\n</li>\n </ul>\n</div>\n\n<ul class="tag-typehead" ng-show="(isFocus && input.length && typehead && results.length) || (typehead && typeheadOpened) " >\n <li class="animate-repeat" ng-repeat="item in data | filter:input as results">\n <a href="javascript:void(0)" ng-click="processor(item[displayField])">{{item[displayField]}}</a>\n </li>\n <!--<li class="animate-repeat" ng-if="results.length == 0">\n <strong>No results found...</strong>\n </li>-->\n</ul>\n</div>');}]);