Cleaning up code -- removed unnecessary lines, fixed indentation, renamed method.

This commit is contained in:
Peter Fogg
2013-06-03 14:21:50 -04:00
parent 2871ce8dee
commit ff0c56b7fb
4 changed files with 11 additions and 18 deletions

View File

@@ -65,9 +65,6 @@ class CMS.Views.UnitEdit extends Backbone.View
event.preventDefault()
type = $(event.currentTarget).data('type')
if type == 'video'
$('.new-component-video .new-component-template a').click()
return
@$newComponentTypePicker.slideUp(250)
@$(".new-component-#{type}").slideDown(250)
$('html, body').animate({