From 565f5f0adc8505966e099b525ec9abe21757745a Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Mon, 11 Feb 2013 16:28:22 -0500 Subject: [PATCH 1/3] Stop simple clicks from paging to top w/o disrupting dnd --- cms/static/js/views/overview.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cms/static/js/views/overview.js b/cms/static/js/views/overview.js index d064f24006..24b29156cd 100644 --- a/cms/static/js/views/overview.js +++ b/cms/static/js/views/overview.js @@ -58,6 +58,9 @@ $(document).ready(function() { drop: onSectionReordered, greedy: true }); + + // stop clicks on drag bars from doing their thing w/o stopping drag (did this cancel pointer?) + $('.courseware-overview').click(function(e) {e.preventDefault(); }); }); From 777e0ef9c5165afee5a6094a1231c812eb72d085 Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Mon, 11 Feb 2013 16:36:34 -0500 Subject: [PATCH 2/3] The other one was too inclusive --- cms/static/js/views/overview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/static/js/views/overview.js b/cms/static/js/views/overview.js index 24b29156cd..db42c13208 100644 --- a/cms/static/js/views/overview.js +++ b/cms/static/js/views/overview.js @@ -60,7 +60,7 @@ $(document).ready(function() { }); // stop clicks on drag bars from doing their thing w/o stopping drag (did this cancel pointer?) - $('.courseware-overview').click(function(e) {e.preventDefault(); }); + $('.drag-handle').click(function(e) {e.preventDefault(); }); }); From 8bc9564d92304f60def3a384ce78e876bf63e203 Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Mon, 11 Feb 2013 16:45:36 -0500 Subject: [PATCH 3/3] clean up note to self --- cms/static/js/views/overview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/static/js/views/overview.js b/cms/static/js/views/overview.js index db42c13208..7d92ab69ad 100644 --- a/cms/static/js/views/overview.js +++ b/cms/static/js/views/overview.js @@ -59,7 +59,7 @@ $(document).ready(function() { greedy: true }); - // stop clicks on drag bars from doing their thing w/o stopping drag (did this cancel pointer?) + // stop clicks on drag bars from doing their thing w/o stopping drag $('.drag-handle').click(function(e) {e.preventDefault(); }); });