Small cleanup.
This commit is contained in:
parent
44e379a3d0
commit
f09a4f1064
2 changed files with 2 additions and 4 deletions
|
@ -131,7 +131,6 @@ class App.TicketZoomArticleActions extends App.Controller
|
|||
e.preventDefault()
|
||||
|
||||
type = App.TicketArticleType.findByAttribute('name', 'facebook feed comment')
|
||||
console.log('tt', type)
|
||||
@scrollToCompose()
|
||||
|
||||
# empty form
|
||||
|
|
|
@ -52,7 +52,7 @@ class App.WidgetTag extends App.Controller
|
|||
|
||||
onAddTag: (e) =>
|
||||
e.preventDefault()
|
||||
item = @$('[name="new_tag"]').val()
|
||||
item = @$('[name="new_tag"]').val().trim()
|
||||
return if !item
|
||||
@add(item)
|
||||
|
||||
|
@ -85,7 +85,6 @@ class App.WidgetTag extends App.Controller
|
|||
e.preventDefault()
|
||||
item = $(e.target).parents('li').find('.js-tag').text()
|
||||
return if !item
|
||||
|
||||
@remove(item)
|
||||
|
||||
remove: (item) =>
|
||||
|
|
Loading…
Reference in a new issue