active_scaffold_kanban 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c30f3ba06e1b5dec52e8e67082593ebcab28568de1b0fe3b2ef131f9ce168b43
|
4
|
+
data.tar.gz: 9f2f3dc3ff0cc16e22d3884a05da241d329a7913ae8fc9083d983d2b3d1399c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb107961547eadf2c706cc8bf230357b131fb72f65239a73c6d66fc723b85cfb7a0169537d8279e62fbbf9941959663e17f83ca9a6a044d83b0c0b4a4e35d604
|
7
|
+
data.tar.gz: 1e4e23545e5b9cd9cfc53dd20d80b1864216a3aded346813555b2d9c9b97102226d94d90cf3a54580236ebf989b5a607c4004103ffe7b409371d74e7ede41e78
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<% if @kanban_view %>
|
2
|
-
|
2
|
+
<% selector = ".kanban-column[data-value=\"#{@record.send(@kanban_column.name)}\"] .cards" %>
|
3
3
|
// ActiveScaffold.create_record_row('<%= active_scaffold_id %>', html, <%= {insert_at: insert_at, body_selector: selector}.to_json.html_safe %>);
|
4
|
-
jQuery(
|
5
|
-
jQuery(
|
4
|
+
jQuery(<%=raw selector.to_json %>).prepend('<%= escape_javascript render('kanban_card', record: @record) %>');
|
5
|
+
jQuery(<%=raw selector.to_json %>).sortable('refresh');
|
6
6
|
<% else %>
|
7
7
|
<%= render :super %>
|
8
8
|
<% end %>
|