
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Saving jQuery UI Sortable's order to Backbone.js Collection
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Saving jQuery UI Sortable's order to Backbone.js Collection
$(document).ready(function() { $('#collection-view').sortable({ // consider using update instead ... $(document).ready(function() { $('#collection-view').sortable({ // consider using update instead of stop stop: function(event, ui) { ui.item.trigger('drop', ui.item.index()); } }); }); The stop event is bound to a function that triggers drop on the DOM node for the item with the item's index (provided by jQuery UI) as data. Item view Application.View.Item = Backbone.View.extend({ tagName: 'li', cl