Skip to content

Commit

Permalink
remove useless script
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalfox committed Jan 13, 2024
1 parent b5fd2ee commit 9083c6d
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions templates/staffing/prod_report.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,42 +197,6 @@ <h2>{% trans "Production rates and daily rates review" %}</h2>
}
}
}

$(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: '<div class="popover" style="max-width:800px;" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>',
}
);

/* 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"
});
});
//-->
</SCRIPT>

Expand Down

0 comments on commit 9083c6d

Please sign in to comment.