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

Shawn Moore shawn at bestpractical.com
Wed Aug 17 17:51:13 EDT 2016


The branch, master has been updated
       via  d4dc9439f9fc2f542eb639faec634bf319688061 (commit)
      from  b9396c949aaae4eebe884bfcda373d27ee03a87e (commit)

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

- Log -----------------------------------------------------------------
commit d4dc9439f9fc2f542eb639faec634bf319688061
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Wed Aug 17 21:55:58 2016 +0000

    Pass queue id to ajax endpoint (for custom roles)

diff --git a/static/js/automatic-assignment.js b/static/js/automatic-assignment.js
index c2a7411..ed2ec88 100644
--- a/static/js/automatic-assignment.js
+++ b/static/js/automatic-assignment.js
@@ -9,6 +9,7 @@ jQuery(function () {
     var addFilterButton = form.find('input.button[name=AddFilter]');
 
     var i = filterList.find('.sortable-box').length;
+    var queueId = form.find('input[name=id]').val();
 
     var refreshFiltersField = function () {
         var filters = "";
@@ -25,6 +26,7 @@ jQuery(function () {
         if (filter) {
             var params = {
                 Name: filter,
+                Queue: queueId,
                 i: ++i
             };
 
@@ -56,7 +58,8 @@ jQuery(function () {
         e.preventDefault();
         var chooserName = jQuery(this).val();
         var params = {
-            Name: chooserName
+            Name: chooserName,
+            Queue: queueId
         };
 
         chooserContainer.addClass('replacing');

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


More information about the Bps-public-commit mailing list