[Bps-public-commit] rt-extension-automaticassignment branch, master, updated. e058a9046bf4e7d726d39d85df860374c58ab7a2

Shawn Moore shawn at bestpractical.com
Wed Aug 17 15:34:39 EDT 2016


The branch, master has been updated
       via  e058a9046bf4e7d726d39d85df860374c58ab7a2 (commit)
      from  664f37cdaeeb67a0222440e7047c8e255cbb883e (commit)

Summary of changes:
 static/js/automatic-assignment.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit e058a9046bf4e7d726d39d85df860374c58ab7a2
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Wed Aug 17 19:35:12 2016 +0000

    Prevent clicking remove from scrolling to the top of the page because # anchor

diff --git a/static/js/automatic-assignment.js b/static/js/automatic-assignment.js
index e231bd8..c2a7411 100644
--- a/static/js/automatic-assignment.js
+++ b/static/js/automatic-assignment.js
@@ -76,7 +76,8 @@ jQuery(function () {
         });
     });
 
-    form.on('click', '.sortable-box .remove', function () {
+    form.on('click', '.sortable-box .remove', function (e) {
+        e.preventDefault();
         jQuery(this).closest('.sortable-box').slideUp(400, function () {
             jQuery(this).remove();
             refreshFiltersField();

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list