Mercurial > bugzilla-dashboard
comparison js/file-bug.js @ 20:71b072bc1e4a
Converted encodeURI() to escape(), apparently this fixes the case where an ampersand is in the name of the component.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Wed, 10 Mar 2010 13:04:13 -0800 |
parents | b2e0ea0178fb |
children | d2f8db74214f |
comparison
equal
deleted
inserted
replaced
19:42d621a98c93 | 20:71b072bc1e4a |
---|---|
47 $("#file-bug").submit( | 47 $("#file-bug").submit( |
48 function(event) { | 48 function(event) { |
49 event.preventDefault(); | 49 event.preventDefault(); |
50 var parts = $("input#category").val().split(EM_DASH); | 50 var parts = $("input#category").val().split(EM_DASH); |
51 window.open(Bugzilla.BASE_UI_URL + "/enter_bug.cgi?" + | 51 window.open(Bugzilla.BASE_UI_URL + "/enter_bug.cgi?" + |
52 "product=" + encodeURI(parts[0]) + "&" + | 52 "product=" + escape(parts[0]) + "&" + |
53 "component=" + encodeURI(parts[1])); | 53 "component=" + escape(parts[1])); |
54 }); | 54 }); |
55 | 55 |
56 Bugzilla.ajax({url: "/configuration", | 56 Bugzilla.ajax({url: "/configuration", |
57 success: function(result) { | 57 success: function(result) { |
58 config = result; | 58 config = result; |