You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by gj...@apache.org on 2013/02/18 19:24:51 UTC

svn commit: r1447418 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js

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({