incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1447418 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js
Date Mon, 18 Feb 2013 18:24:51 GMT
Author: gjm
Date: Mon Feb 18 18:24:50 2013
New Revision: 1447418

URL: http://svn.apache.org/r1447418
Log:
check for base_urls of / when constructing quick ticket post url - #399

Modified:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js

Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js?rev=1447418&r1=1447417&r2=1447418&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js Mon Feb 18 18:24:50
2013
@@ -75,6 +75,8 @@ $( function () {
     $('#qct-create').click(
         function() {
           var base_url = $('#qct-create').attr('data-target');
+          if (base_url === '/')
+            base_url = '';
           $.post(base_url + '/qct', $('#qct-form').serialize(), 
               function(ticket_id) {
                 qct_alert({



Mime
View raw message