diff --git a/templates/staffing/prod_report.html b/templates/staffing/prod_report.html index 70a53f45..d285648e 100644 --- a/templates/staffing/prod_report.html +++ b/templates/staffing/prod_report.html @@ -197,42 +197,6 @@

{% trans "Production rates and daily rates review" %}

} } } - -$(document).ready(function(){ - - $(".pdc-tooltip").popover( - { - container: "body", - html: true, - content: function() { - var staffing_date = $(this).closest('table').find('span').eq($(this).index()-1).attr('title'); - var consultant = $(this).closest('tr').find('span').attr('title'); - if (staffing_date.length == 6) { - var url = '{% url 'staffing:pdc_detail' '123456' '19700101' %}'.replace("123456", consultant).replace("19700101", staffing_date); - return $.ajax({ - url: url, - dataType: 'html', - async: false - }).responseText; - } else { - // Invalid staffing_date. It means we are outside pdc array (like client column) - return ''; - } - }, - trigger: "click", - template: '', - } - ); - - /* avoid popover to open more than on at the same time */ - $('.pdc-tooltip').on("click", function(){ - $('.pdc-tooltip').not(this).popover('hide'); //all but this - }); - - $('#buttons-projection label').tooltip({ - "container": "body" - }); -}); //-->