From 20e354d1a868d1da7a2c71953847a9132b65b56e Mon Sep 17 00:00:00 2001 From: dsc Date: Sun, 4 Mar 2012 22:03:18 -0800 Subject: [PATCH] Adds option sorting. --- lib/graph/graph-view.co | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/lib/graph/graph-view.co b/lib/graph/graph-view.co index c82539d..42a66f3 100644 --- a/lib/graph/graph-view.co +++ b/lib/graph/graph-view.co @@ -81,7 +81,11 @@ GraphOptionsScaffold = exports.GraphOptionsScaffold = Scaffold.extend do # {{{ itemSelector : '.field.option' layoutMode : 'masonry' masonry : columnWidth : 10 - # itemPositionDataEnabled : true + itemPositionDataEnabled : true + getSortData : + category: ($el) -> + $el.data 'model' .getCategory() + sortBy: 'category' /** * Add a GraphOption to this scaffold, rerendering the isotope -- 1.7.0.4