Skip to content

Commit 806c142

Browse files
committed
fix hardcoded URLs in javascript
- Legacy-Id: 5448
1 parent b229612 commit 806c142

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

static/secr-static/js/utils.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function init_proceedings_upload() {
8484
var element_id = ui.item.attr("id");
8585
var slide_name = $("tr#"+element_id+" td.hidden").text();
8686
var order = $.inArray(element_id,data);
87-
$.post('/proceedings/ajax/order-slide/',{'slide_name':slide_name,'order':order});
87+
$.post('/secr/proceedings/ajax/order-slide/',{'slide_name':slide_name,'order':order});
8888
// restripe the table
8989
restripe('#slides.sortable');
9090
}
@@ -158,15 +158,15 @@ $(document).ready(function() {
158158
// Setup autocomplete for adding names
159159
if ($('input.name-autocomplete').length) {
160160
$('input.name-autocomplete').autocomplete({
161-
source: "/areas/getpeople/",
161+
source: "/secr/areas/getpeople/",
162162
minLength: 3,
163163
select: function(event, ui) {
164164
//match number inside paren and then strip paren
165165
id = ui.item.label.match(/\(\d+\)/);
166166
val = id[0].replace(/[\(\)]/g, "");
167167
//alert(id,val);
168168
//alert(id.match(/\d+/));
169-
$.getJSON('/areas/getemails/',{"id":val},function(data) {
169+
$.getJSON('/secr/areas/getemails/',{"id":val},function(data) {
170170
$('#id_email option').remove();
171171
$.each(data,function(i,item) {
172172
$('#id_email').append('<option value="'+item.id+'">'+item.value+'</option>');
@@ -183,7 +183,7 @@ $(document).ready(function() {
183183

184184
// auto populate Area Director List when primary area selected (add form)
185185
$('#id_primary_area').change(function(){
186-
$.getJSON('/groups/get_ads/',{"area":$(this).val()},function(data) {
186+
$.getJSON('/secr/groups/get_ads/',{"area":$(this).val()},function(data) {
187187
$('#id_primary_area_director option').remove();
188188
$.each(data,function(i,item) {
189189
$('#id_primary_area_director').append('<option value="'+item.id+'">'+item.value+'</option>');
@@ -193,7 +193,7 @@ $(document).ready(function() {
193193

194194
// auto populate Area Director List when area selected (edit form)
195195
$('#id_ietfwg-0-primary_area').change(function(){
196-
$.getJSON('/groups/get_ads/',{"area":$(this).val()},function(data) {
196+
$.getJSON('/secr/groups/get_ads/',{"area":$(this).val()},function(data) {
197197
$('#id_ietfwg-0-area_director option').remove();
198198
$.each(data,function(i,item) {
199199
$('#id_ietfwg-0-area_director').append('<option value="'+item.id+'">'+item.value+'</option>');

0 commit comments

Comments
 (0)