[tor-commits] [compass/master] Included missing sortable.js asset
karsten at torproject.org
karsten at torproject.org
Mon Jan 7 07:09:40 UTC 2013
commit a9f525fff156e56022dbea1139471e6613f9cdc0
Author: Chris Wacek <cwacek at cs.georgetown.edu>
Date: Sun Dec 23 00:31:24 2012 -0500
Included missing sortable.js asset
---
static/js/sortable.js | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/static/js/sortable.js b/static/js/sortable.js
new file mode 100644
index 0000000..04c10a9
--- /dev/null
+++ b/static/js/sortable.js
@@ -0,0 +1,37 @@
+// Generated by CoffeeScript 1.4.0
+
+/*
+This is part of the Oblique AngularJS components
+available at http://github.com/cwacek/Oblique
+*/
+
+
+(function() {
+ var module;
+
+ module = angular.module('oblique.directives', []);
+
+ module.directive('sortable', function() {
+ var linkFn;
+ linkFn = function(scope, element, attrs) {
+ return element.bind('click', function(event) {
+ var callback;
+ element.css('background-image', 'url("' + attrs.icon + '")');
+ ' Call the requested function ';
+
+ callback = scope.$eval(attrs.sortable);
+ callback(attrs.sortBy, attrs.invert, function() {
+ return element.css('background-image', "");
+ });
+ return attrs.invert = !attrs.invert;
+ });
+ };
+ return {
+ link: linkFn,
+ restrict: 'A',
+ link: linkFn,
+ scope: true
+ };
+ });
+
+}).call(this);
More information about the tor-commits
mailing list