summaryrefslogtreecommitdiffstats
path: root/coffee/directives/draggable.coffee
blob: 9ebd9d30e0177f188615bc8fd3d13a7def7076ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
###
# ownCloud - News app
#
# @author Bernhard Posselt
# Copyright (c) 2012 - Bernhard Posselt <nukeawhale@gmail.com>
#
# This file is licensed under the Affero General Public License version 3 or later.
# See the COPYING-README file
#
###

angular.module('News').directive 'draggable', ->

	return (scope, elm, attr) ->

		details = 
			revert: true
			stack: '> li'
			zIndex: 1000
			axis: 'y'
		
		$(elm).draggable(details)