Permalink
Browse files

inline for clarity

  • Loading branch information...
1 parent e0e56fa commit 2be1791a094d31278ee7c9deb535f74d20a5854c @carsongross carsongross committed Jan 6, 2017
Showing with 6 additions and 3 deletions.
  1. +6 −3 www/examples/sortablelist.html
@@ -42,8 +42,14 @@
<i class="fa fa-spinner fa-spin"></i> Saving...
</span>
</span>
+
<form>
<ul id="sortable-list" ic-put-to="/colors" ic-trigger-on="sort" ic-indicator="#indicator">
+ <li>Blue <input type="hidden" name="colors" value="Blue"></li>
+ <li>Red <input type="hidden" name="colors" value="Red"></li>
+ <li>Green <input type="hidden" name="colors" value="Green"></li>
+ <li>Yellow <input type="hidden" name="colors" value="Yellow"></li>
+ <li>Purple <input type="hidden" name="colors" value="Purple"></li>
</ul>
</form>
@@ -55,9 +61,6 @@
$(function(){
var list = document.getElementById("sortable-list");
Sortable.create(list); // That's all.
-
- // initialize the list (this would be rendered inline if we were using a server rather than mockjax)
- $(list).html(colorListTemplate(colors));
});
//========================================================================

0 comments on commit 2be1791

Please sign in to comment.