summaryrefslogtreecommitdiff
path: root/web-ui/app
diff options
context:
space:
mode:
authorAlexandre Pretto Nunes <anunes@thoughtworks.com>2015-02-11 17:06:33 -0200
committerAlexandre Pretto Nunes <anunes@thoughtworks.com>2015-02-19 16:41:24 -0200
commit356734f2fb0f70910c3e085eb0ebcc72e191fdde (patch)
treef9468f9697111b591a17b28086a41e8b956c9a32 /web-ui/app
parent1e42c85ed0e0af4181dfe1b66d1c6445975bea10 (diff)
#239 remove deprecated tag shortcut code
Diffstat (limited to 'web-ui/app')
-rw-r--r--web-ui/app/js/tags/ui/tag_list.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/web-ui/app/js/tags/ui/tag_list.js b/web-ui/app/js/tags/ui/tag_list.js
index c9a66722..a2172c6d 100644
--- a/web-ui/app/js/tags/ui/tag_list.js
+++ b/web-ui/app/js/tags/ui/tag_list.js
@@ -20,11 +20,10 @@ define(
'tags/ui/tag',
'views/templates',
'page/events',
- 'tags/ui/tag_shortcut',
'page/router/url_params'
],
- function(defineComponent, Tag, templates, events, TagShortcut, urlParams) {
+ function(defineComponent, Tag, templates, events, urlParams) {
'use strict';
var ICON_FOR = {
@@ -55,10 +54,6 @@ define(
customTagList: '#custom-tag-list'
});
- this.renderShortcut = function (tag, tagComponent) {
- return TagShortcut.appendedTo($('#tags-shortcuts'), { tag: tag, trigger: tagComponent, currentTag: this.getCurrentTag()});
- };
-
function renderTag(tag, defaultList, customList) {
var list = tag.default ? defaultList : customList;
@@ -73,17 +68,11 @@ define(
}
- this.resetShortcuts = function () {
- $('#tags-shortcuts').empty();
- this.trigger(document, events.tags.shortcuts.teardown);
- };
-
this.renderTagList = function(tags) {
var defaultList = this.select('defaultTagList');
var customList = this.select('customTagList');
resetTagList.call(this, [defaultList, customList]);
- this.resetShortcuts();
tags.forEach(function (tag) {
renderTag.call(this, tag, defaultList, customList);