[Rt-commit] [rtir] 05/07: support constituency filtering with RTIR create in queue modal
Dustin Graves
dustin at bestpractical.com
Thu May 12 20:11:41 EDT 2016
This is an automated email from the git hooks/post-receive script.
dustin pushed a commit to branch 3.4/popup-ticket-create
in repository rtir.
commit 64c6051110054ef3a0292b7b67b7001cf2bd28db
Author: Dustin Graves <dustin at bestpractical.com>
Date: Thu May 12 23:28:41 2016 +0000
support constituency filtering with RTIR create in queue modal
---
static/js/rtir.js | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/static/js/rtir.js b/static/js/rtir.js
index 7a134d9..9bb4fe7 100644
--- a/static/js/rtir.js
+++ b/static/js/rtir.js
@@ -9,9 +9,18 @@ jQuery(function() {
var showModal = function(lifecycle, lifecycleDesc, triggeringObject) {
var queryString = getQueryString(triggeringObject);
- console.log(queryString);
+ var constituency = '';
+
+ var uri = window.location.href.split('/');
+ for (var i = 0; i < uri.length; i++) {
+ if (uri[i] === 'c') {
+ constituency = '/c/' + uri[i+1];
+ break;
+ }
+ }
+
jQuery.get(
- RT.Config.WebHomePath + '/RTIR/Helpers/CreateInRTIRQueueModal?Lifecycle=' + lifecycle + '&LifecycleDesc=' + lifecycleDesc + '&' + queryString,
+ RT.Config.WebHomePath + '/RTIR' + constituency + '/Helpers/CreateInRTIRQueueModal?Lifecycle=' + lifecycle + '&LifecycleDesc=' + lifecycleDesc + '&' + queryString,
function(html) {
// If there's only one queue, just create a ticket in it and skip the modal
var queues = jQuery(html).find("select[name='Queue'] > option");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list