web/data/cubicweb.js
brancholdstable
changeset 8462 a14b6562082b
parent 8071 9ab3a9406473
child 8129 2dedcc15208d
--- a/web/data/cubicweb.js	Tue Feb 14 15:14:22 2012 +0100
+++ b/web/data/cubicweb.js	Tue Jul 10 15:07:23 2012 +0200
@@ -81,6 +81,14 @@
             parent.removeChild(dest);
         }
         return src;
+    },
+
+    sortValueExtraction: function (node) {
+	var sortvalue = jQuery(node).attr('cubicweb:sortvalue');
+	if (sortvalue === undefined) {
+	    return '';
+	}
+	return cw.evalJSON(sortvalue);
     }
 });