Commit ecd771cc authored by Ciro Santilli's avatar Ciro Santilli

Move coffee to assets/project

parent c5890296
...@@ -46,3 +46,8 @@ $ -> ...@@ -46,3 +46,8 @@ $ ->
$.cookie('hide_no_ssh_message', 'false', { path: path }) $.cookie('hide_no_ssh_message', 'false', { path: path })
$(@).parents('.no-ssh-key-message').hide() $(@).parents('.no-ssh-key-message').hide()
e.preventDefault() e.preventDefault()
$('.project-home-panel .star').on 'ajax:success', (e, data, status, xhr) ->
$(@).toggleClass('on').find('.count').html(data.star_count)
.on 'ajax:error', (e, xhr, status, error) ->
new Flash('Star toggle failed. Try again later.', 'alert')
...@@ -44,11 +44,6 @@ ...@@ -44,11 +44,6 @@
title: 'Unstar this project.', title: 'Unstar this project.',
starred: true, starred: true,
signed_in: true signed_in: true
:coffeescript
$('.star').on 'ajax:success', (e, data, status, xhr) ->
$(@).toggleClass('on').find('.count').html(data.star_count)
.on 'ajax:error', (e, xhr, status, error) ->
new Flash('Star toggle failed. Try again later.', 'alert')
- else - else
= render 'link_to_toggle_star', = render 'link_to_toggle_star',
title: 'You must sign in to star a project.', title: 'You must sign in to star a project.',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment