Merge pull request #1392 from NARKOZ/refactoring

refactor factory specs
This commit is contained in:
Dmitriy Zaporozhets 2012-09-06 08:11:41 -07:00
commit a595f8944a
2 changed files with 5 additions and 87 deletions

View file

@ -1,7 +1,7 @@
window.Projects = ->
$('#project_name').on 'change', ->
slug = slugify $(@).val()
$('#project_code').val slug
$('#project_code, #project_path').val slug
$('.new_project, .edit_project').on 'ajax:before', ->
$('.project_new_holder, .project_edit_holder').hide()