summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-02-12 02:53:21 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-02-12 02:53:21 +0100
commit399007f6b70470e29a0f29ea0920b54c0db222f0 (patch)
tree95808bc6e649de3df171f01a7afd2c508e6f56ca
parentf9f627bd7482fd8390407bc9989e27856c2705af (diff)
prevent dnd element from loading after dragged
-rw-r--r--coffee/directives/draggable.coffee1
-rw-r--r--css/feeds.css4
-rw-r--r--js/app.js3
3 files changed, 7 insertions, 1 deletions
diff --git a/coffee/directives/draggable.coffee b/coffee/directives/draggable.coffee
index dfed9fdb5..48703dd98 100644
--- a/coffee/directives/draggable.coffee
+++ b/coffee/directives/draggable.coffee
@@ -22,6 +22,7 @@ angular.module('News').directive 'draggable', ->
stack: '> li'
zIndex: 1000
axis: 'y'
+ helper: 'clone'
$(elm).draggable(details)
diff --git a/css/feeds.css b/css/feeds.css
index a5a2d59ea..777b6488d 100644
--- a/css/feeds.css
+++ b/css/feeds.css
@@ -97,3 +97,7 @@ button.action:hover {
.rss-icon {
background-image: url('%appswebroot%/news/img/rss.svg');
}
+
+#left-content .ui-draggable-dragging {
+ width: 249px;
+} \ No newline at end of file
diff --git a/js/app.js b/js/app.js
index 1b16853af..796ffcf97 100644
--- a/js/app.js
+++ b/js/app.js
@@ -2249,7 +2249,8 @@
revert: true,
stack: '> li',
zIndex: 1000,
- axis: 'y'
+ axis: 'y',
+ helper: 'clone'
};
return $(elm).draggable(details);
};