Skip to content

Commit

Permalink
Integrated initial drag and drop implementation for portfolio items.
Browse files Browse the repository at this point in the history
  • Loading branch information
solidstatejake committed Jun 19, 2019
1 parent 3fc1669 commit 540642b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions app/assets/javascripts/portfolios.coffee
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
ready = undefined

ready = ->
$('.sortable').sortable()
return

$(document).ready ready
2 changes: 1 addition & 1 deletion app/views/portfolios/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="album text-muted">
<div class="container">

<div class="row">
<div class="row sortable">

<%= render partial: 'portfolio_item', collection: @portfolio_items %>

Expand Down

0 comments on commit 540642b

Please sign in to comment.