From b223774364d6eaacedeec481a5a1e01f6eaa0129 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 30 Oct 2014 14:44:09 +0100 Subject: [PATCH] Small JS changes hoping for IE compat --- stages/static/js/attribution.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stages/static/js/attribution.js b/stages/static/js/attribution.js index 7a1b661..4fa78b2 100644 --- a/stages/static/js/attribution.js +++ b/stages/static/js/attribution.js @@ -61,7 +61,7 @@ function update_corporations(period_id) { $.each(data, function() { if (this.free) { options.push(this); - sel.append($("'); - var id_corp = $("option:selected", this).data('id_corp'); + var id_corp = $(this).find("option:selected").data('idCorp'); $.getJSON('/corporation/' + id_corp + '/contacts/', function(data) { $.each(data, function(key, contact) { var item = contact.first_name + ' ' + contact.last_name;