Merge pull request #1392 from NARKOZ/refactoring
refactor factory specs
This commit is contained in:
commit
a595f8944a
2 changed files with 5 additions and 87 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue